home *** CD-ROM | disk | FTP | other *** search
/ CD Classic 39 / CD CLASSIC #39 (1998).iso / EMPRESA / visio / Vistdstd / Install / Data.Z / Visiwrap.H < prev    next >
C/C++ Source or Header  |  1997-11-11  |  621KB  |  21,984 lines

  1. //  Wrapper class(es) generated by Dynamo!
  2. //  This file was generated at 10:29:05 on 09/26/1997
  3. //  by DynamoCL - Version 1.07
  4. //  ***************************************************************************
  5.  
  6. //
  7. //  D:\ml\c-cpp\vao_inc\Visiwrap.h - C++ Wrappers for Type Library "Visio"
  8. //  Copyright (C) 1996-97 Visio Corporation. All rights reserved.
  9. //
  10.  
  11. //  ***************************************************************************
  12. //  'Sentinel'
  13.  
  14. #ifndef _Visiwrap_H
  15. #define _Visiwrap_H
  16.  
  17. #define _Visio_WRAPPERS
  18. #define _Visio_WRAPPERS_VERSION 0x00040006
  19.  
  20. //  ***************************************************************************
  21. //  Contents of header.h
  22.  
  23. //  Start D:\ml\bat\header.vis
  24. #include <windows.h>
  25. #include <ole2.h>
  26.  
  27. #if !defined (_WIN32)
  28.     #include <dispatch.h>
  29. #endif
  30.  
  31. //    for Visio's dual OLE Automation interfaces
  32. #include "visio.h"
  33.  
  34. //    for CoCreateAddonSink -- Event stuff
  35. #include "addsink.h"
  36.  
  37. //
  38. //    Define these so the old files are not included after
  39. //    this one accidentally...
  40. //
  41. #define _IVISPROX_H
  42. #define _IVISPROX_HPP
  43. #define NO_VISIO_41_COMPATIBILITY_LAYER
  44.  
  45. //
  46. //
  47. #define CVisioChars CVisioCharacters
  48. #define CVisioEvents CVisioEventList
  49.  
  50. //
  51. //    Include the BSTR and VARIANT helper classes:
  52. //
  53. #ifndef HELPERS_____
  54. #include "helpers.h"
  55. #endif  //  HELPERS_____
  56.  
  57. //  End D:\ml\bat\header.vis
  58.  
  59.  
  60. //  ***************************************************************************
  61. //  Macros
  62.  
  63. #ifndef VW_INTERFACE_NOT_SET
  64. #define VW_INTERFACE_NOT_SET    MAKE_HRESULT(SEVERITY_ERROR, 0x06a5, 0x4001);
  65. #endif  //  VW_INTERFACE_NOT_SET
  66.  
  67. #ifndef VW_NOT_IMPLEMENTED_IN_THIS_VERSION
  68. #define VW_NOT_IMPLEMENTED_IN_THIS_VERSION    MAKE_HRESULT(SEVERITY_ERROR, 0x06a5, 0x4002);
  69. #endif  //  VW_NOT_IMPLEMENTED_IN_THIS_VERSION
  70.  
  71. #ifndef CHECK_IP
  72. #define CHECK_IP(ip, className, methName)
  73. #endif  //  CHECK_IP
  74.  
  75. #ifndef CHECK_HRESULT
  76. #define CHECK_HRESULT(hr, className, methName)
  77. #endif  //  CHECK_HRESULT
  78.  
  79. #ifndef VW_CONST
  80. #define VW_CONST const
  81. #endif  //  VW_CONST
  82.  
  83. #ifndef VW_INLINE
  84. #define VW_INLINE inline
  85. #endif  //  VW_INLINE
  86.  
  87. #ifndef FAR
  88. #define FAR
  89. #endif  //  FAR
  90.  
  91. #ifndef VW_PUBLIC
  92. #define VW_PUBLIC public
  93. #endif  //  VW_PUBLIC
  94.  
  95. #ifndef VW_PROTECTED
  96. #define VW_PROTECTED protected
  97. #endif  //  VW_PROTECTED
  98.  
  99. #ifndef VW_PRIVATE
  100. #define VW_PRIVATE private
  101. #endif  //  VW_PRIVATE
  102.  
  103.  
  104. //  ***************************************************************************
  105. //  Forward declarations and typedefs
  106.  
  107. class FAR CVisioUnknown;
  108.  
  109. class FAR CVisioApplication;
  110. class FAR CVisioCell;
  111. class FAR CVisioCharacters;
  112. class FAR CVisioConnect;
  113. class FAR CVisioConnects;
  114. class FAR CVisioDocument;
  115. class FAR CVisioDocuments;
  116. class FAR CVisioMaster;
  117. class FAR CVisioMasters;
  118. class FAR CVisioPage;
  119. class FAR CVisioPages;
  120. class FAR CVisioSelection;
  121. class FAR CVisioShape;
  122. class FAR CVisioShapes;
  123. class FAR CVisioStyle;
  124. class FAR CVisioStyles;
  125. class FAR CVisioWindow;
  126. class FAR CVisioWindows;
  127. class FAR CVisioLayer;
  128. class FAR CVisioLayers;
  129. class FAR CVisioFont;
  130. class FAR CVisioFonts;
  131. class FAR CVisioColor;
  132. class FAR CVisioColors;
  133. class FAR CVisioAddon;
  134. class FAR CVisioAddons;
  135. class FAR CVisioEvent;
  136. class FAR CVisioEventList;
  137. class FAR CVisioGlobal;
  138. class FAR CVisioEDocument;
  139. class FAR CVisioEApplication;
  140. class FAR CVisioEWindows;
  141. class FAR CVisioEWindow;
  142. class FAR CVisioEDocuments;
  143. class FAR CVisioEStyles;
  144. class FAR CVisioEStyle;
  145. class FAR CVisioEMasters;
  146. class FAR CVisioEMaster;
  147. class FAR CVisioEPages;
  148. class FAR CVisioEPage;
  149. class FAR CVisioEShape;
  150. class FAR CVisioECharacters;
  151. class FAR CVisioECell;
  152. class FAR CVisioMenuItem;
  153. class FAR CVisioIEnumVMenuItem;
  154. class FAR CVisioMenuItems;
  155. class FAR CVisioMenu;
  156. class FAR CVisioIEnumVMenu;
  157. class FAR CVisioMenus;
  158. class FAR CVisioMenuSet;
  159. class FAR CVisioIEnumVMenuSet;
  160. class FAR CVisioMenuSets;
  161. class FAR CVisioToolbarItem;
  162. class FAR CVisioIEnumVToolbarItem;
  163. class FAR CVisioToolbarItems;
  164. class FAR CVisioToolbar;
  165. class FAR CVisioIEnumVToolbar;
  166. class FAR CVisioToolbars;
  167. class FAR CVisioToolbarSet;
  168. class FAR CVisioIEnumVToolbarSet;
  169. class FAR CVisioToolbarSets;
  170. class FAR CVisioStatusBarItem;
  171. class FAR CVisioIEnumVStatusBarItem;
  172. class FAR CVisioStatusBarItems;
  173. class FAR CVisioStatusBar;
  174. class FAR CVisioIEnumVStatusBar;
  175. class FAR CVisioStatusBars;
  176. class FAR CVisioAccelItem;
  177. class FAR CVisioIEnumVAccelItem;
  178. class FAR CVisioAccelItems;
  179. class FAR CVisioAccelTable;
  180. class FAR CVisioIEnumVAccelTable;
  181. class FAR CVisioAccelTables;
  182. class FAR CVisioUIObject;
  183. class FAR CVisioHyperlink;
  184. class FAR CVisioOLEObjects;
  185. class FAR CVisioOLEObject;
  186. class FAR CVisioPaths;
  187. class FAR CVisioPath;
  188. class FAR CVisioCurve;
  189. class FAR CVisioExtender;
  190. class FAR CVisioDispExtender;
  191. class FAR CVisioAmbients;
  192.  
  193.  
  194. #ifndef VISIO_LPS_FORWARD_DECLARED
  195. #define VISIO_LPS_FORWARD_DECLARED
  196.  
  197. interface IVApplication;
  198. typedef IVApplication FAR *LPVISIOAPPLICATION;
  199.  
  200. interface IVCell;
  201. typedef IVCell FAR *LPVISIOCELL;
  202.  
  203. interface IVCharacters;
  204. typedef IVCharacters FAR *LPVISIOCHARACTERS;
  205.  
  206. interface IVConnect;
  207. typedef IVConnect FAR *LPVISIOCONNECT;
  208.  
  209. interface IVConnects;
  210. typedef IVConnects FAR *LPVISIOCONNECTS;
  211.  
  212. interface IVDocument;
  213. typedef IVDocument FAR *LPVISIODOCUMENT;
  214.  
  215. interface IVDocuments;
  216. typedef IVDocuments FAR *LPVISIODOCUMENTS;
  217.  
  218. interface IVMaster;
  219. typedef IVMaster FAR *LPVISIOMASTER;
  220.  
  221. interface IVMasters;
  222. typedef IVMasters FAR *LPVISIOMASTERS;
  223.  
  224. interface IVPage;
  225. typedef IVPage FAR *LPVISIOPAGE;
  226.  
  227. interface IVPages;
  228. typedef IVPages FAR *LPVISIOPAGES;
  229.  
  230. interface IVSelection;
  231. typedef IVSelection FAR *LPVISIOSELECTION;
  232.  
  233. interface IVShape;
  234. typedef IVShape FAR *LPVISIOSHAPE;
  235.  
  236. interface IVShapes;
  237. typedef IVShapes FAR *LPVISIOSHAPES;
  238.  
  239. interface IVStyle;
  240. typedef IVStyle FAR *LPVISIOSTYLE;
  241.  
  242. interface IVStyles;
  243. typedef IVStyles FAR *LPVISIOSTYLES;
  244.  
  245. interface IVWindow;
  246. typedef IVWindow FAR *LPVISIOWINDOW;
  247.  
  248. interface IVWindows;
  249. typedef IVWindows FAR *LPVISIOWINDOWS;
  250.  
  251. interface IVLayer;
  252. typedef IVLayer FAR *LPVISIOLAYER;
  253.  
  254. interface IVLayers;
  255. typedef IVLayers FAR *LPVISIOLAYERS;
  256.  
  257. interface IVFont;
  258. typedef IVFont FAR *LPVISIOFONT;
  259.  
  260. interface IVFonts;
  261. typedef IVFonts FAR *LPVISIOFONTS;
  262.  
  263. interface IVColor;
  264. typedef IVColor FAR *LPVISIOCOLOR;
  265.  
  266. interface IVColors;
  267. typedef IVColors FAR *LPVISIOCOLORS;
  268.  
  269. interface IVAddon;
  270. typedef IVAddon FAR *LPVISIOADDON;
  271.  
  272. interface IVAddons;
  273. typedef IVAddons FAR *LPVISIOADDONS;
  274.  
  275. interface IVEvent;
  276. typedef IVEvent FAR *LPVISIOEVENT;
  277.  
  278. interface IVEventList;
  279. typedef IVEventList FAR *LPVISIOEVENTLIST;
  280.  
  281. interface IVGlobal;
  282. typedef IVGlobal FAR *LPVISIOGLOBAL;
  283.  
  284. interface EDocument;
  285. typedef EDocument FAR *LPVISIOEDOCUMENT;
  286.  
  287. interface EApplication;
  288. typedef EApplication FAR *LPVISIOEAPPLICATION;
  289.  
  290. interface EWindows;
  291. typedef EWindows FAR *LPVISIOEWINDOWS;
  292.  
  293. interface EWindow;
  294. typedef EWindow FAR *LPVISIOEWINDOW;
  295.  
  296. interface EDocuments;
  297. typedef EDocuments FAR *LPVISIOEDOCUMENTS;
  298.  
  299. interface EStyles;
  300. typedef EStyles FAR *LPVISIOESTYLES;
  301.  
  302. interface EStyle;
  303. typedef EStyle FAR *LPVISIOESTYLE;
  304.  
  305. interface EMasters;
  306. typedef EMasters FAR *LPVISIOEMASTERS;
  307.  
  308. interface EMaster;
  309. typedef EMaster FAR *LPVISIOEMASTER;
  310.  
  311. interface EPages;
  312. typedef EPages FAR *LPVISIOEPAGES;
  313.  
  314. interface EPage;
  315. typedef EPage FAR *LPVISIOEPAGE;
  316.  
  317. interface EShape;
  318. typedef EShape FAR *LPVISIOESHAPE;
  319.  
  320. interface ECharacters;
  321. typedef ECharacters FAR *LPVISIOECHARACTERS;
  322.  
  323. interface ECell;
  324. typedef ECell FAR *LPVISIOECELL;
  325.  
  326. interface IVMenuItem;
  327. typedef IVMenuItem FAR *LPVISIOMENUITEM;
  328.  
  329. interface IEnumVMenuItem;
  330. typedef IEnumVMenuItem FAR *LPVISIOIENUMVMENUITEM;
  331.  
  332. interface IVMenuItems;
  333. typedef IVMenuItems FAR *LPVISIOMENUITEMS;
  334.  
  335. interface IVMenu;
  336. typedef IVMenu FAR *LPVISIOMENU;
  337.  
  338. interface IEnumVMenu;
  339. typedef IEnumVMenu FAR *LPVISIOIENUMVMENU;
  340.  
  341. interface IVMenus;
  342. typedef IVMenus FAR *LPVISIOMENUS;
  343.  
  344. interface IVMenuSet;
  345. typedef IVMenuSet FAR *LPVISIOMENUSET;
  346.  
  347. interface IEnumVMenuSet;
  348. typedef IEnumVMenuSet FAR *LPVISIOIENUMVMENUSET;
  349.  
  350. interface IVMenuSets;
  351. typedef IVMenuSets FAR *LPVISIOMENUSETS;
  352.  
  353. interface IVToolbarItem;
  354. typedef IVToolbarItem FAR *LPVISIOTOOLBARITEM;
  355.  
  356. interface IEnumVToolbarItem;
  357. typedef IEnumVToolbarItem FAR *LPVISIOIENUMVTOOLBARITEM;
  358.  
  359. interface IVToolbarItems;
  360. typedef IVToolbarItems FAR *LPVISIOTOOLBARITEMS;
  361.  
  362. interface IVToolbar;
  363. typedef IVToolbar FAR *LPVISIOTOOLBAR;
  364.  
  365. interface IEnumVToolbar;
  366. typedef IEnumVToolbar FAR *LPVISIOIENUMVTOOLBAR;
  367.  
  368. interface IVToolbars;
  369. typedef IVToolbars FAR *LPVISIOTOOLBARS;
  370.  
  371. interface IVToolbarSet;
  372. typedef IVToolbarSet FAR *LPVISIOTOOLBARSET;
  373.  
  374. interface IEnumVToolbarSet;
  375. typedef IEnumVToolbarSet FAR *LPVISIOIENUMVTOOLBARSET;
  376.  
  377. interface IVToolbarSets;
  378. typedef IVToolbarSets FAR *LPVISIOTOOLBARSETS;
  379.  
  380. interface IVStatusBarItem;
  381. typedef IVStatusBarItem FAR *LPVISIOSTATUSBARITEM;
  382.  
  383. interface IEnumVStatusBarItem;
  384. typedef IEnumVStatusBarItem FAR *LPVISIOIENUMVSTATUSBARITEM;
  385.  
  386. interface IVStatusBarItems;
  387. typedef IVStatusBarItems FAR *LPVISIOSTATUSBARITEMS;
  388.  
  389. interface IVStatusBar;
  390. typedef IVStatusBar FAR *LPVISIOSTATUSBAR;
  391.  
  392. interface IEnumVStatusBar;
  393. typedef IEnumVStatusBar FAR *LPVISIOIENUMVSTATUSBAR;
  394.  
  395. interface IVStatusBars;
  396. typedef IVStatusBars FAR *LPVISIOSTATUSBARS;
  397.  
  398. interface IVAccelItem;
  399. typedef IVAccelItem FAR *LPVISIOACCELITEM;
  400.  
  401. interface IEnumVAccelItem;
  402. typedef IEnumVAccelItem FAR *LPVISIOIENUMVACCELITEM;
  403.  
  404. interface IVAccelItems;
  405. typedef IVAccelItems FAR *LPVISIOACCELITEMS;
  406.  
  407. interface IVAccelTable;
  408. typedef IVAccelTable FAR *LPVISIOACCELTABLE;
  409.  
  410. interface IEnumVAccelTable;
  411. typedef IEnumVAccelTable FAR *LPVISIOIENUMVACCELTABLE;
  412.  
  413. interface IVAccelTables;
  414. typedef IVAccelTables FAR *LPVISIOACCELTABLES;
  415.  
  416. interface IVUIObject;
  417. typedef IVUIObject FAR *LPVISIOUIOBJECT;
  418.  
  419. interface IVHyperlink;
  420. typedef IVHyperlink FAR *LPVISIOHYPERLINK;
  421.  
  422. interface IVOLEObjects;
  423. typedef IVOLEObjects FAR *LPVISIOOLEOBJECTS;
  424.  
  425. interface IVOLEObject;
  426. typedef IVOLEObject FAR *LPVISIOOLEOBJECT;
  427.  
  428. interface IVPaths;
  429. typedef IVPaths FAR *LPVISIOPATHS;
  430.  
  431. interface IVPath;
  432. typedef IVPath FAR *LPVISIOPATH;
  433.  
  434. interface IVCurve;
  435. typedef IVCurve FAR *LPVISIOCURVE;
  436.  
  437. interface IVExtender;
  438. typedef IVExtender FAR *LPVISIOEXTENDER;
  439.  
  440. interface IVDispExtender;
  441. typedef IVDispExtender FAR *LPVISIODISPEXTENDER;
  442.  
  443. interface IVAmbients;
  444. typedef IVAmbients FAR *LPVISIOAMBIENTS;
  445.  
  446. #endif  //  VISIO_LPS_FORWARD_DECLARED
  447.  
  448.  
  449. //  ***************************************************************************
  450. //  Root class declaration
  451.  
  452. //  If VW_ROOT_CLASS is defined, use it as the parent class of CVisioUnknown
  453.  
  454. #ifdef VW_ROOT_CLASS
  455. class FAR CVisioUnknown : public VW_ROOT_CLASS
  456. #else
  457. class FAR CVisioUnknown
  458. #endif  //  VW_ROOT_CLASS
  459. {
  460. VW_PUBLIC:
  461.     CVisioUnknown() { m_pUnk= NULL; }
  462.  
  463.     CVisioUnknown(const CVisioUnknown FAR &other)
  464.         {
  465.         m_pUnk= NULL;
  466.         CopyIP(other.GetUnknown());
  467.         }
  468.  
  469.     CVisioUnknown(LPUNKNOWN lpIUnk, BOOL bAssumeResponsibility= FALSE)
  470.         {
  471.         if (bAssumeResponsibility)
  472.             {
  473.             //    Caller hereby transfers ownership of his refcount
  474.             //    to this instance of the wrapper class. Caller must
  475.             //    NOT release lpIUnk.
  476.             m_pUnk= lpIUnk;
  477.             }
  478.         else
  479.             {
  480.             //    Caller wants us to AddRef; caller MUST release lpIUnk.
  481.             m_pUnk= NULL;
  482.             CopyIP(lpIUnk);
  483.             }
  484.         }
  485.  
  486.     const CVisioUnknown FAR & operator=(const CVisioUnknown FAR &other)
  487.         {
  488.         if ( &other != this )
  489.             CopyIP(other.GetUnknown());
  490.  
  491.         return *this;
  492.         }
  493.  
  494.     const CVisioUnknown FAR & operator=(const LPUNKNOWN other)
  495.         {
  496.         if ( other != GetUnknown() )
  497.             CopyIP(other);
  498.  
  499.         return *this;
  500.         }
  501.  
  502.     virtual ~CVisioUnknown() { ReleaseIP(); }
  503.  
  504.     virtual BOOL IsSet() const { return ((NULL == GetUnknown()) ? FALSE : TRUE); }
  505.  
  506.     virtual UINT RefCount() const
  507.         {
  508.         UINT uc= 0xFFFFFFAA;    //  probably means m_pUnk==NULL
  509.         if (NULL!=m_pUnk)
  510.             {
  511.             m_pUnk->AddRef();
  512.             uc= m_pUnk->Release();
  513.             }
  514.         return uc;
  515.         }
  516.  
  517.     virtual HRESULT QueryInterfaceIP(REFIID riid, void FAR * FAR * ppvObj)
  518.         {
  519.         //  If successful, callers MUST call (*(LPUNKNOWN *)ppvObj)->Release()
  520.         //  This is merely a wrapper around the real QueryInterface.
  521.         HRESULT hr= VW_INTERFACE_NOT_SET;
  522.         CHECK_IP(m_pUnk, CVisioUnknown, QueryInterfaceIP);
  523.         if (NULL!=m_pUnk)
  524.             hr= m_pUnk->QueryInterface(riid, ppvObj);
  525.         CHECK_HRESULT(hr, CVisioUnknown, QueryInterfaceIP);
  526.         return hr;
  527.         }
  528.  
  529. VW_PROTECTED:
  530.     virtual void AddRefIP()
  531.         {
  532.         if ( NULL != m_pUnk )
  533.             m_pUnk->AddRef();
  534.         }
  535.  
  536.     virtual void ReleaseIP()
  537.         {
  538.         if ( NULL != m_pUnk )
  539.             {
  540.             m_pUnk->Release();
  541.             m_pUnk = NULL;
  542.             }
  543.         }
  544.  
  545.     virtual void CopyIP(LPUNKNOWN pUnk)
  546.         {
  547.         if (m_pUnk!=pUnk)
  548.             {
  549.             ReleaseIP();
  550.             m_pUnk = pUnk;
  551.             AddRefIP();
  552.             }
  553.         }
  554.  
  555.     LPUNKNOWN GetUnknown() const
  556.         {
  557.         //  NO AddRef; Callers DO NOT Release!
  558.         return m_pUnk;
  559.         }
  560.  
  561. VW_PRIVATE:
  562.     LPUNKNOWN m_pUnk;
  563. };
  564.  
  565.  
  566. //  ***************************************************************************
  567. //  TypeLib Interface class declarations
  568.  
  569.  
  570. //  ***************************************************************************
  571. //  Declaration of class CVisioApplication
  572.  
  573. class FAR CVisioApplication : public CVisioUnknown
  574. {
  575. VW_PUBLIC:
  576.     CVisioApplication()
  577.         : CVisioUnknown() { }
  578.  
  579.     CVisioApplication(const CVisioApplication& other)
  580.         : CVisioUnknown(other) { }
  581.  
  582.     CVisioApplication(const IVApplication FAR * other, BOOL bAssumeResponsibility= FALSE)
  583.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  584.  
  585.     const CVisioApplication FAR & operator=(const CVisioApplication FAR &other)
  586.         {
  587.         if ( &other != this )
  588.             CopyIP(other.GetUnknown());
  589.  
  590.         return *this;
  591.         }
  592.  
  593.     const CVisioApplication FAR & operator=(const IVApplication FAR * other)
  594.         {
  595.         if ( (LPUNKNOWN)other != GetUnknown() )
  596.             CopyIP((LPUNKNOWN)other);
  597.  
  598.         return *this;
  599.         }
  600.  
  601.     virtual ~CVisioApplication() { }
  602.  
  603.     IVApplication FAR * GetIP() const { return (IVApplication FAR *) GetUnknown(); }
  604.  
  605.     operator IVApplication FAR * () { return (IVApplication FAR *) GetUnknown(); }
  606.  
  607. VW_PUBLIC:
  608.     HRESULT ActiveDocument(CVisioDocument FAR &rWrap);
  609.     HRESULT ActivePage(CVisioPage FAR &rWrap);
  610.     HRESULT ActiveWindow(CVisioWindow FAR &rWrap);
  611.     HRESULT Application(CVisioApplication FAR &rWrap);
  612.     HRESULT Documents(CVisioDocuments FAR &rWrap);
  613.     HRESULT ObjectType(short FAR *lpRet);
  614.     HRESULT getOnDataChangeDelay(long FAR *lpRet);
  615.     HRESULT putOnDataChangeDelay(VW_CONST long param01);
  616.     HRESULT ProcessID(long FAR *lpRet);
  617.     HRESULT Quit();
  618.     HRESULT Redo();
  619.     HRESULT getScreenUpdating(short FAR *lpRet);
  620.     HRESULT putScreenUpdating(VW_CONST short param01);
  621.     HRESULT Stat(short FAR *lpRet);
  622.     HRESULT Undo();
  623.     HRESULT Version(BSTR_HELPER_CLASS FAR &rWrap);
  624.     HRESULT WindowHandle(short FAR *lpRet);
  625.     HRESULT Windows(CVisioWindows FAR &rWrap);
  626.     HRESULT Language(long FAR *lpRet);
  627.     HRESULT IsVisio16(short FAR *lpRet);
  628.     HRESULT IsVisio32(short FAR *lpRet);
  629.     HRESULT WindowHandle32(long FAR *lpRet);
  630.     HRESULT InstanceHandle(short FAR *lpRet);
  631.     HRESULT InstanceHandle32(long FAR *lpRet);
  632.     HRESULT BuiltInMenus(CVisioUIObject FAR &rWrap);
  633.     HRESULT BuiltInToolbars(short fIgnored, CVisioUIObject FAR &rWrap);
  634.     HRESULT CustomMenus(CVisioUIObject FAR &rWrap);
  635.     HRESULT SetCustomMenus(CVisioUIObject FAR &MenusObject);
  636.     HRESULT getCustomMenusFile(BSTR_HELPER_CLASS FAR &rWrap);
  637.     HRESULT putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  638.     HRESULT ClearCustomMenus();
  639.     HRESULT CustomToolbars(CVisioUIObject FAR &rWrap);
  640.     HRESULT SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject);
  641.     HRESULT getCustomToolbarsFile(BSTR_HELPER_CLASS FAR &rWrap);
  642.     HRESULT putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  643.     HRESULT ClearCustomToolbars();
  644.     HRESULT getAddonPaths(BSTR_HELPER_CLASS FAR &rWrap);
  645.     HRESULT putAddonPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  646.     HRESULT getDrawingPaths(BSTR_HELPER_CLASS FAR &rWrap);
  647.     HRESULT putDrawingPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  648.     HRESULT getFilterPaths(BSTR_HELPER_CLASS FAR &rWrap);
  649.     HRESULT putFilterPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  650.     HRESULT getHelpPaths(BSTR_HELPER_CLASS FAR &rWrap);
  651.     HRESULT putHelpPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  652.     HRESULT getStartupPaths(BSTR_HELPER_CLASS FAR &rWrap);
  653.     HRESULT putStartupPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  654.     HRESULT getStencilPaths(BSTR_HELPER_CLASS FAR &rWrap);
  655.     HRESULT putStencilPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  656.     HRESULT getTemplatePaths(BSTR_HELPER_CLASS FAR &rWrap);
  657.     HRESULT putTemplatePaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  658.     HRESULT getUserName(BSTR_HELPER_CLASS FAR &rWrap);
  659.     HRESULT putUserName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  660.     HRESULT getPromptForSummary(short FAR *lpRet);
  661.     HRESULT putPromptForSummary(VW_CONST short param01);
  662.     HRESULT Addons(CVisioAddons FAR &rWrap);
  663.     HRESULT SaveWorkspaceAs(BSTR_HELPER_CLASS FAR &FileName);
  664.     HRESULT DoCmd(short CommandID);
  665.     HRESULT ProfileName(BSTR_HELPER_CLASS FAR &rWrap);
  666.     HRESULT EventInfo(long reservedPass0, BSTR_HELPER_CLASS FAR &rWrap);
  667.     HRESULT EventList(CVisioEventList FAR &rWrap);
  668.     HRESULT PersistsEvents(short FAR *lpRet);
  669.     HRESULT Active(short FAR *lpRet);
  670.     HRESULT getDeferRecalc(short FAR *lpRet);
  671.     HRESULT putDeferRecalc(VW_CONST short param01);
  672.     HRESULT getAlertResponse(short FAR *lpRet);
  673.     HRESULT putAlertResponse(VW_CONST short param01);
  674.     HRESULT getShowProgress(short FAR *lpRet);
  675.     HRESULT putShowProgress(VW_CONST short param01);
  676.     HRESULT Vbe(IDispatch FAR *FAR *lpRet);
  677.     HRESULT getShowMenus(short FAR *lpRet);
  678.     HRESULT putShowMenus(VW_CONST short param01);
  679.     HRESULT getToolbarStyle(short FAR *lpRet);
  680.     HRESULT putToolbarStyle(VW_CONST short param01);
  681.     HRESULT getShowStatusBar(short FAR *lpRet);
  682.     HRESULT putShowStatusBar(VW_CONST short param01);
  683.     HRESULT getEventsEnabled(short FAR *lpRet);
  684.     HRESULT putEventsEnabled(VW_CONST short param01);
  685.     HRESULT FormatResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, BSTR_HELPER_CLASS FAR &Format, BSTR_HELPER_CLASS FAR &rWrap);
  686.     HRESULT ConvertResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, double FAR *lpRet);
  687.     HRESULT Path(BSTR_HELPER_CLASS FAR &rWrap);
  688.     HRESULT EnumDirectories(BSTR_HELPER_CLASS FAR &PathsString, /*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  689.     HRESULT getTraceFlags(long FAR *lpRet);
  690.     HRESULT putTraceFlags(VW_CONST long param01);
  691.     HRESULT PurgeUndo();
  692.     HRESULT QueueMarkerEvent(BSTR_HELPER_CLASS FAR &ContextString, long FAR *lpRet);
  693.     HRESULT getShowToolbar(short FAR *lpRet);
  694.     HRESULT putShowToolbar(VW_CONST short param01);
  695. };
  696.  
  697.  
  698. //  ***************************************************************************
  699. //  Declaration of class CVisioCell
  700.  
  701. class FAR CVisioCell : public CVisioUnknown
  702. {
  703. VW_PUBLIC:
  704.     CVisioCell()
  705.         : CVisioUnknown() { }
  706.  
  707.     CVisioCell(const CVisioCell& other)
  708.         : CVisioUnknown(other) { }
  709.  
  710.     CVisioCell(const IVCell FAR * other, BOOL bAssumeResponsibility= FALSE)
  711.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  712.  
  713.     const CVisioCell FAR & operator=(const CVisioCell FAR &other)
  714.         {
  715.         if ( &other != this )
  716.             CopyIP(other.GetUnknown());
  717.  
  718.         return *this;
  719.         }
  720.  
  721.     const CVisioCell FAR & operator=(const IVCell FAR * other)
  722.         {
  723.         if ( (LPUNKNOWN)other != GetUnknown() )
  724.             CopyIP((LPUNKNOWN)other);
  725.  
  726.         return *this;
  727.         }
  728.  
  729.     virtual ~CVisioCell() { }
  730.  
  731.     IVCell FAR * GetIP() const { return (IVCell FAR *) GetUnknown(); }
  732.  
  733.     operator IVCell FAR * () { return (IVCell FAR *) GetUnknown(); }
  734.  
  735. VW_PUBLIC:
  736.     HRESULT Application(CVisioApplication FAR &rWrap);
  737.     HRESULT ObjectType(short FAR *lpRet);
  738.     HRESULT Error(short FAR *lpRet);
  739.     HRESULT getFormula(BSTR_HELPER_CLASS FAR &rWrap);
  740.     HRESULT putFormula(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  741.     HRESULT FormulaForce(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  742.     HRESULT GlueTo(CVisioCell FAR &CellObject);
  743.     HRESULT GlueToPos(CVisioShape FAR &SheetObject, double xPercent, double yPercent);
  744.     HRESULT getResult(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  745.     HRESULT putResult(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  746.     HRESULT ResultForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  747.     HRESULT getResultIU(double FAR *lpRet);
  748.     HRESULT putResultIU(VW_CONST double param01);
  749.     HRESULT ResultIUForce(VW_CONST double param01);
  750.     HRESULT Stat(short FAR *lpRet);
  751.     HRESULT Units(short FAR *lpRet);
  752.     HRESULT Name(BSTR_HELPER_CLASS FAR &rWrap);
  753.     HRESULT LocalName(BSTR_HELPER_CLASS FAR &rWrap);
  754.     HRESULT putRowName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  755.     HRESULT Document(CVisioDocument FAR &rWrap);
  756.     HRESULT Shape(CVisioShape FAR &rWrap);
  757.     HRESULT Style(CVisioStyle FAR &rWrap);
  758.     HRESULT Section(short FAR *lpRet);
  759.     HRESULT Row(short FAR *lpRet);
  760.     HRESULT Column(short FAR *lpRet);
  761.     HRESULT IsConstant(short FAR *lpRet);
  762.     HRESULT IsInherited(short FAR *lpRet);
  763.     HRESULT ResultInt(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, short fRound, long FAR *lpRet);
  764.     HRESULT ResultFromInt(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02);
  765.     HRESULT ResultFromIntForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02);
  766.     HRESULT ResultStr(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, BSTR_HELPER_CLASS FAR &rWrap);
  767.     HRESULT Trigger();
  768.     HRESULT getRowName(BSTR_HELPER_CLASS FAR &rWrap);
  769.     HRESULT EventList(CVisioEventList FAR &rWrap);
  770.     HRESULT PersistsEvents(short FAR *lpRet);
  771. };
  772.  
  773.  
  774. //  ***************************************************************************
  775. //  Declaration of class CVisioCharacters
  776.  
  777. class FAR CVisioCharacters : public CVisioUnknown
  778. {
  779. VW_PUBLIC:
  780.     CVisioCharacters()
  781.         : CVisioUnknown() { }
  782.  
  783.     CVisioCharacters(const CVisioCharacters& other)
  784.         : CVisioUnknown(other) { }
  785.  
  786.     CVisioCharacters(const IVCharacters FAR * other, BOOL bAssumeResponsibility= FALSE)
  787.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  788.  
  789.     const CVisioCharacters FAR & operator=(const CVisioCharacters FAR &other)
  790.         {
  791.         if ( &other != this )
  792.             CopyIP(other.GetUnknown());
  793.  
  794.         return *this;
  795.         }
  796.  
  797.     const CVisioCharacters FAR & operator=(const IVCharacters FAR * other)
  798.         {
  799.         if ( (LPUNKNOWN)other != GetUnknown() )
  800.             CopyIP((LPUNKNOWN)other);
  801.  
  802.         return *this;
  803.         }
  804.  
  805.     virtual ~CVisioCharacters() { }
  806.  
  807.     IVCharacters FAR * GetIP() const { return (IVCharacters FAR *) GetUnknown(); }
  808.  
  809.     operator IVCharacters FAR * () { return (IVCharacters FAR *) GetUnknown(); }
  810.  
  811. VW_PUBLIC:
  812.     HRESULT AddCustomField(BSTR_HELPER_CLASS FAR &Formula, short Format);
  813.     HRESULT AddField(short Category, short Code, short Format);
  814.     HRESULT Application(CVisioApplication FAR &rWrap);
  815.     HRESULT getBegin(long FAR *lpRet);
  816.     HRESULT putBegin(VW_CONST long param01);
  817.     HRESULT CharCount(long FAR *lpRet);
  818.     HRESULT CharProps(VW_CONST short CellIndex, VW_CONST short param02);
  819.     HRESULT CharPropsRow(short BiasLorR, short FAR *lpRet);
  820.     HRESULT Copy();
  821.     HRESULT Cut();
  822.     HRESULT ObjectType(short FAR *lpRet);
  823.     HRESULT getEnd(long FAR *lpRet);
  824.     HRESULT putEnd(VW_CONST long param01);
  825.     HRESULT FieldCategory(short FAR *lpRet);
  826.     HRESULT FieldCode(short FAR *lpRet);
  827.     HRESULT FieldFormat(short FAR *lpRet);
  828.     HRESULT FieldFormula(BSTR_HELPER_CLASS FAR &rWrap);
  829.     HRESULT IsField(short FAR *lpRet);
  830.     HRESULT ParaProps(VW_CONST short CellIndex, VW_CONST short param02);
  831.     HRESULT ParaPropsRow(short BiasLorR, short FAR *lpRet);
  832.     HRESULT Paste();
  833.     HRESULT TabPropsRow(short BiasLorR, short FAR *lpRet);
  834.     HRESULT RunBegin(short RunType, long FAR *lpRet);
  835.     HRESULT RunEnd(short RunType, long FAR *lpRet);
  836.     HRESULT Shape(CVisioShape FAR &rWrap);
  837.     HRESULT Stat(short FAR *lpRet);
  838.     HRESULT TextAsString(BSTR_HELPER_CLASS FAR &rWrap);
  839.     HRESULT putText(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  840.     HRESULT Document(CVisioDocument FAR &rWrap);
  841.     HRESULT EventList(CVisioEventList FAR &rWrap);
  842.     HRESULT PersistsEvents(short FAR *lpRet);
  843.     HRESULT getText(VARIANT_HELPER_CLASS FAR &rWrap);
  844. };
  845.  
  846.  
  847. //  ***************************************************************************
  848. //  Declaration of class CVisioConnect
  849.  
  850. class FAR CVisioConnect : public CVisioUnknown
  851. {
  852. VW_PUBLIC:
  853.     CVisioConnect()
  854.         : CVisioUnknown() { }
  855.  
  856.     CVisioConnect(const CVisioConnect& other)
  857.         : CVisioUnknown(other) { }
  858.  
  859.     CVisioConnect(const IVConnect FAR * other, BOOL bAssumeResponsibility= FALSE)
  860.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  861.  
  862.     const CVisioConnect FAR & operator=(const CVisioConnect FAR &other)
  863.         {
  864.         if ( &other != this )
  865.             CopyIP(other.GetUnknown());
  866.  
  867.         return *this;
  868.         }
  869.  
  870.     const CVisioConnect FAR & operator=(const IVConnect FAR * other)
  871.         {
  872.         if ( (LPUNKNOWN)other != GetUnknown() )
  873.             CopyIP((LPUNKNOWN)other);
  874.  
  875.         return *this;
  876.         }
  877.  
  878.     virtual ~CVisioConnect() { }
  879.  
  880.     IVConnect FAR * GetIP() const { return (IVConnect FAR *) GetUnknown(); }
  881.  
  882.     operator IVConnect FAR * () { return (IVConnect FAR *) GetUnknown(); }
  883.  
  884. VW_PUBLIC:
  885.     HRESULT Application(CVisioApplication FAR &rWrap);
  886.     HRESULT Stat(short FAR *lpRet);
  887.     HRESULT FromSheet(CVisioShape FAR &rWrap);
  888.     HRESULT ToSheet(CVisioShape FAR &rWrap);
  889.     HRESULT FromCell(CVisioCell FAR &rWrap);
  890.     HRESULT ToCell(CVisioCell FAR &rWrap);
  891.     HRESULT FromPart(short FAR *lpRet);
  892.     HRESULT ToPart(short FAR *lpRet);
  893.     HRESULT ObjectType(short FAR *lpRet);
  894.     HRESULT Index(short FAR *lpRet);
  895.     HRESULT Document(CVisioDocument FAR &rWrap);
  896. };
  897.  
  898.  
  899. //  ***************************************************************************
  900. //  Declaration of class CVisioConnects
  901.  
  902. class FAR CVisioConnects : public CVisioUnknown
  903. {
  904. VW_PUBLIC:
  905.     CVisioConnects()
  906.         : CVisioUnknown() { }
  907.  
  908.     CVisioConnects(const CVisioConnects& other)
  909.         : CVisioUnknown(other) { }
  910.  
  911.     CVisioConnects(const IVConnects FAR * other, BOOL bAssumeResponsibility= FALSE)
  912.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  913.  
  914.     const CVisioConnects FAR & operator=(const CVisioConnects FAR &other)
  915.         {
  916.         if ( &other != this )
  917.             CopyIP(other.GetUnknown());
  918.  
  919.         return *this;
  920.         }
  921.  
  922.     const CVisioConnects FAR & operator=(const IVConnects FAR * other)
  923.         {
  924.         if ( (LPUNKNOWN)other != GetUnknown() )
  925.             CopyIP((LPUNKNOWN)other);
  926.  
  927.         return *this;
  928.         }
  929.  
  930.     virtual ~CVisioConnects() { }
  931.  
  932.     IVConnects FAR * GetIP() const { return (IVConnects FAR *) GetUnknown(); }
  933.  
  934.     operator IVConnects FAR * () { return (IVConnects FAR *) GetUnknown(); }
  935.  
  936. VW_PUBLIC:
  937.     HRESULT Application(CVisioApplication FAR &rWrap);
  938.     HRESULT Item(short Index, CVisioConnect FAR &rWrap);
  939.     HRESULT Count(short FAR *lpRet);
  940.     HRESULT FromSheet(CVisioShape FAR &rWrap);
  941.     HRESULT ObjectType(short FAR *lpRet);
  942.     HRESULT Document(CVisioDocument FAR &rWrap);
  943.     HRESULT Stat(short FAR *lpRet);
  944.     HRESULT ToSheet(CVisioShape FAR &rWrap);
  945. };
  946.  
  947.  
  948. //  ***************************************************************************
  949. //  Declaration of class CVisioDocument
  950.  
  951. class FAR CVisioDocument : public CVisioUnknown
  952. {
  953. VW_PUBLIC:
  954.     CVisioDocument()
  955.         : CVisioUnknown() { }
  956.  
  957.     CVisioDocument(const CVisioDocument& other)
  958.         : CVisioUnknown(other) { }
  959.  
  960.     CVisioDocument(const IVDocument FAR * other, BOOL bAssumeResponsibility= FALSE)
  961.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  962.  
  963.     const CVisioDocument FAR & operator=(const CVisioDocument FAR &other)
  964.         {
  965.         if ( &other != this )
  966.             CopyIP(other.GetUnknown());
  967.  
  968.         return *this;
  969.         }
  970.  
  971.     const CVisioDocument FAR & operator=(const IVDocument FAR * other)
  972.         {
  973.         if ( (LPUNKNOWN)other != GetUnknown() )
  974.             CopyIP((LPUNKNOWN)other);
  975.  
  976.         return *this;
  977.         }
  978.  
  979.     virtual ~CVisioDocument() { }
  980.  
  981.     IVDocument FAR * GetIP() const { return (IVDocument FAR *) GetUnknown(); }
  982.  
  983.     operator IVDocument FAR * () { return (IVDocument FAR *) GetUnknown(); }
  984.  
  985. VW_PUBLIC:
  986.     HRESULT Application(CVisioApplication FAR &rWrap);
  987.     HRESULT Stat(short FAR *lpRet);
  988.     HRESULT ObjectType(short FAR *lpRet);
  989.     HRESULT InPlace(short FAR *lpRet);
  990.     HRESULT Masters(CVisioMasters FAR &rWrap);
  991.     HRESULT Pages(CVisioPages FAR &rWrap);
  992.     HRESULT Styles(CVisioStyles FAR &rWrap);
  993.     HRESULT Name(BSTR_HELPER_CLASS FAR &rWrap);
  994.     HRESULT Path(BSTR_HELPER_CLASS FAR &rWrap);
  995.     HRESULT FullName(BSTR_HELPER_CLASS FAR &rWrap);
  996.     HRESULT Drop(IUnknown FAR *ObjectToDrop, short xPos, short yPos, CVisioMaster FAR &rWrap);
  997.     HRESULT Index(short FAR *lpRet);
  998.     HRESULT getSaved(short FAR *lpRet);
  999.     HRESULT putSaved(VW_CONST short param01);
  1000.     HRESULT ReadOnly(short FAR *lpRet);
  1001.     HRESULT Save(short FAR *lpRet);
  1002.     HRESULT SaveAs(BSTR_HELPER_CLASS FAR &FileName, short FAR *lpRet);
  1003.     HRESULT getVersion(long FAR *lpRet);
  1004.     HRESULT putVersion(VW_CONST long param01);
  1005.     HRESULT getTitle(BSTR_HELPER_CLASS FAR &rWrap);
  1006.     HRESULT putTitle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1007.     HRESULT getSubject(BSTR_HELPER_CLASS FAR &rWrap);
  1008.     HRESULT putSubject(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1009.     HRESULT getCreator(BSTR_HELPER_CLASS FAR &rWrap);
  1010.     HRESULT putCreator(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1011.     HRESULT getKeywords(BSTR_HELPER_CLASS FAR &rWrap);
  1012.     HRESULT putKeywords(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1013.     HRESULT getDescription(BSTR_HELPER_CLASS FAR &rWrap);
  1014.     HRESULT putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1015.     HRESULT Print();
  1016.     HRESULT Close();
  1017.     HRESULT CustomMenus(CVisioUIObject FAR &rWrap);
  1018.     HRESULT SetCustomMenus(CVisioUIObject FAR &MenusObject);
  1019.     HRESULT getCustomMenusFile(BSTR_HELPER_CLASS FAR &rWrap);
  1020.     HRESULT putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1021.     HRESULT ClearCustomMenus();
  1022.     HRESULT CustomToolbars(CVisioUIObject FAR &rWrap);
  1023.     HRESULT SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject);
  1024.     HRESULT getCustomToolbarsFile(BSTR_HELPER_CLASS FAR &rWrap);
  1025.     HRESULT putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1026.     HRESULT ClearCustomToolbars();
  1027.     HRESULT Fonts(CVisioFonts FAR &rWrap);
  1028.     HRESULT Colors(CVisioColors FAR &rWrap);
  1029.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1030.     HRESULT Template(BSTR_HELPER_CLASS FAR &rWrap);
  1031.     HRESULT SaveAsEx(BSTR_HELPER_CLASS FAR &FileName, short SaveFlags);
  1032.     HRESULT getSavePreviewMode(short FAR *lpRet);
  1033.     HRESULT putSavePreviewMode(VW_CONST short param01);
  1034.     HRESULT GetIcon(short ID, BSTR_HELPER_CLASS FAR &FileName);
  1035.     HRESULT SetIcon(short ID, short Index, BSTR_HELPER_CLASS FAR &FileName);
  1036.     HRESULT getLeftMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1037.     HRESULT putLeftMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1038.     HRESULT getRightMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1039.     HRESULT putRightMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1040.     HRESULT getTopMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1041.     HRESULT putTopMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1042.     HRESULT getBottomMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1043.     HRESULT putBottomMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1044.     HRESULT getPrintLandscape(short FAR *lpRet);
  1045.     HRESULT putPrintLandscape(VW_CONST short param01);
  1046.     HRESULT getPrintCenteredH(short FAR *lpRet);
  1047.     HRESULT putPrintCenteredH(VW_CONST short param01);
  1048.     HRESULT getPrintCenteredV(short FAR *lpRet);
  1049.     HRESULT putPrintCenteredV(VW_CONST short param01);
  1050.     HRESULT getPrintScale(double FAR *lpRet);
  1051.     HRESULT putPrintScale(VW_CONST double param01);
  1052.     HRESULT getPrintFitOnPages(short FAR *lpRet);
  1053.     HRESULT putPrintFitOnPages(VW_CONST short param01);
  1054.     HRESULT getPrintPagesAcross(short FAR *lpRet);
  1055.     HRESULT putPrintPagesAcross(VW_CONST short param01);
  1056.     HRESULT getPrintPagesDown(short FAR *lpRet);
  1057.     HRESULT putPrintPagesDown(VW_CONST short param01);
  1058.     HRESULT getDefaultStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1059.     HRESULT putDefaultStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1060.     HRESULT getDefaultLineStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1061.     HRESULT putDefaultLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1062.     HRESULT getDefaultFillStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1063.     HRESULT putDefaultFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1064.     HRESULT getDefaultTextStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1065.     HRESULT putDefaultTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1066.     HRESULT PersistsEvents(short FAR *lpRet);
  1067.     HRESULT OpenStencilWindow(CVisioWindow FAR &rWrap);
  1068.     HRESULT ParseLine(BSTR_HELPER_CLASS FAR &Line);
  1069.     HRESULT ExecuteLine(BSTR_HELPER_CLASS FAR &Line);
  1070.     HRESULT VBProject(IDispatch FAR *FAR *lpRet);
  1071.     HRESULT PaperWidth(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1072.     HRESULT PaperHeight(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet);
  1073.     HRESULT getPaperSize(short FAR *lpRet);
  1074.     HRESULT putPaperSize(VW_CONST short param01);
  1075.     HRESULT FollowHyperlink45(BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &Location);
  1076.     HRESULT CodeName(BSTR_HELPER_CLASS FAR &rWrap);
  1077.     HRESULT getMode(short FAR *lpRet);
  1078.     HRESULT putMode(VW_CONST short param01);
  1079.     HRESULT OLEObjects(CVisioOLEObjects FAR &rWrap);
  1080.     HRESULT FollowHyperlink(BSTR_HELPER_CLASS FAR &Address, BSTR_HELPER_CLASS FAR &SubAddress, VARIANT_HELPER_CLASS FAR &ExtraInfo, VARIANT_HELPER_CLASS FAR &Frame, VARIANT_HELPER_CLASS FAR &NewWindow, VARIANT_HELPER_CLASS FAR &res1, VARIANT_HELPER_CLASS FAR &res2, VARIANT_HELPER_CLASS FAR &res3);
  1081.     HRESULT getManager(BSTR_HELPER_CLASS FAR &rWrap);
  1082.     HRESULT putManager(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1083.     HRESULT getCompany(BSTR_HELPER_CLASS FAR &rWrap);
  1084.     HRESULT putCompany(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1085.     HRESULT getCategory(BSTR_HELPER_CLASS FAR &rWrap);
  1086.     HRESULT putCategory(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1087.     HRESULT getHyperlinkBase(BSTR_HELPER_CLASS FAR &rWrap);
  1088.     HRESULT putHyperlinkBase(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1089. };
  1090.  
  1091.  
  1092. //  ***************************************************************************
  1093. //  Declaration of class CVisioDocuments
  1094.  
  1095. class FAR CVisioDocuments : public CVisioUnknown
  1096. {
  1097. VW_PUBLIC:
  1098.     CVisioDocuments()
  1099.         : CVisioUnknown() { }
  1100.  
  1101.     CVisioDocuments(const CVisioDocuments& other)
  1102.         : CVisioUnknown(other) { }
  1103.  
  1104.     CVisioDocuments(const IVDocuments FAR * other, BOOL bAssumeResponsibility= FALSE)
  1105.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1106.  
  1107.     const CVisioDocuments FAR & operator=(const CVisioDocuments FAR &other)
  1108.         {
  1109.         if ( &other != this )
  1110.             CopyIP(other.GetUnknown());
  1111.  
  1112.         return *this;
  1113.         }
  1114.  
  1115.     const CVisioDocuments FAR & operator=(const IVDocuments FAR * other)
  1116.         {
  1117.         if ( (LPUNKNOWN)other != GetUnknown() )
  1118.             CopyIP((LPUNKNOWN)other);
  1119.  
  1120.         return *this;
  1121.         }
  1122.  
  1123.     virtual ~CVisioDocuments() { }
  1124.  
  1125.     IVDocuments FAR * GetIP() const { return (IVDocuments FAR *) GetUnknown(); }
  1126.  
  1127.     operator IVDocuments FAR * () { return (IVDocuments FAR *) GetUnknown(); }
  1128.  
  1129. VW_PUBLIC:
  1130.     HRESULT Add(BSTR_HELPER_CLASS FAR &FileName, CVisioDocument FAR &rWrap);
  1131.     HRESULT Open(BSTR_HELPER_CLASS FAR &FileName, CVisioDocument FAR &rWrap);
  1132.     HRESULT Application(CVisioApplication FAR &rWrap);
  1133.     HRESULT ObjectType(short FAR *lpRet);
  1134.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioDocument FAR &rWrap);
  1135.     HRESULT Count(short FAR *lpRet);
  1136.     HRESULT OpenEx(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioDocument FAR &rWrap);
  1137.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1138.     HRESULT PersistsEvents(short FAR *lpRet);
  1139.     HRESULT GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1140. };
  1141.  
  1142.  
  1143. //  ***************************************************************************
  1144. //  Declaration of class CVisioMaster
  1145.  
  1146. class FAR CVisioMaster : public CVisioUnknown
  1147. {
  1148. VW_PUBLIC:
  1149.     CVisioMaster()
  1150.         : CVisioUnknown() { }
  1151.  
  1152.     CVisioMaster(const CVisioMaster& other)
  1153.         : CVisioUnknown(other) { }
  1154.  
  1155.     CVisioMaster(const IVMaster FAR * other, BOOL bAssumeResponsibility= FALSE)
  1156.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1157.  
  1158.     const CVisioMaster FAR & operator=(const CVisioMaster FAR &other)
  1159.         {
  1160.         if ( &other != this )
  1161.             CopyIP(other.GetUnknown());
  1162.  
  1163.         return *this;
  1164.         }
  1165.  
  1166.     const CVisioMaster FAR & operator=(const IVMaster FAR * other)
  1167.         {
  1168.         if ( (LPUNKNOWN)other != GetUnknown() )
  1169.             CopyIP((LPUNKNOWN)other);
  1170.  
  1171.         return *this;
  1172.         }
  1173.  
  1174.     virtual ~CVisioMaster() { }
  1175.  
  1176.     IVMaster FAR * GetIP() const { return (IVMaster FAR *) GetUnknown(); }
  1177.  
  1178.     operator IVMaster FAR * () { return (IVMaster FAR *) GetUnknown(); }
  1179.  
  1180. VW_PUBLIC:
  1181.     HRESULT Document(CVisioDocument FAR &rWrap);
  1182.     HRESULT getPrompt(BSTR_HELPER_CLASS FAR &rWrap);
  1183.     HRESULT putPrompt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1184.     HRESULT getAlignName(short FAR *lpRet);
  1185.     HRESULT putAlignName(VW_CONST short param01);
  1186.     HRESULT getIconSize(short FAR *lpRet);
  1187.     HRESULT putIconSize(VW_CONST short param01);
  1188.     HRESULT getIconUpdate(short FAR *lpRet);
  1189.     HRESULT putIconUpdate(VW_CONST short param01);
  1190.     HRESULT Application(CVisioApplication FAR &rWrap);
  1191.     HRESULT Stat(short FAR *lpRet);
  1192.     HRESULT ObjectType(short FAR *lpRet);
  1193.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  1194.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1195.     HRESULT Shapes(CVisioShapes FAR &rWrap);
  1196.     HRESULT Index(short FAR *lpRet);
  1197.     HRESULT OneD(short FAR *lpRet);
  1198.     HRESULT Delete();
  1199.     HRESULT UniqueID(BSTR_HELPER_CLASS FAR &rWrap);
  1200.     HRESULT Layers(CVisioLayers FAR &rWrap);
  1201.     HRESULT PageSheet(CVisioShape FAR &rWrap);
  1202.     HRESULT Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap);
  1203.     HRESULT CenterDrawing();
  1204.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1205.     HRESULT PersistsEvents(short FAR *lpRet);
  1206.     HRESULT DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1207.     HRESULT DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1208.     HRESULT DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1209.     HRESULT DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap);
  1210.     HRESULT DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap);
  1211.     HRESULT DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap);
  1212.     HRESULT Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap);
  1213.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  1214.     HRESULT InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap);
  1215.     HRESULT InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap);
  1216.     HRESULT OpenDrawWindow(CVisioWindow FAR &rWrap);
  1217.     HRESULT OpenIconWindow(CVisioWindow FAR &rWrap);
  1218.     HRESULT Open(CVisioMaster FAR &rWrap);
  1219.     HRESULT Close();
  1220.     HRESULT DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet);
  1221.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1222.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1223.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  1224.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  1225.     HRESULT Connects(CVisioConnects FAR &rWrap);
  1226.     HRESULT ImportIcon(BSTR_HELPER_CLASS FAR &FileName);
  1227.     HRESULT ExportIcon(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1228.     HRESULT Layout();
  1229.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1230.     HRESULT ID(short FAR *lpRet);
  1231.     HRESULT OLEObjects(CVisioOLEObjects FAR &rWrap);
  1232.     HRESULT getPatternFlags(short FAR *lpRet);
  1233.     HRESULT putPatternFlags(VW_CONST short param01);
  1234.     HRESULT getMatchByName(short FAR *lpRet);
  1235.     HRESULT putMatchByName(VW_CONST short param01);
  1236. };
  1237.  
  1238.  
  1239. //  ***************************************************************************
  1240. //  Declaration of class CVisioMasters
  1241.  
  1242. class FAR CVisioMasters : public CVisioUnknown
  1243. {
  1244. VW_PUBLIC:
  1245.     CVisioMasters()
  1246.         : CVisioUnknown() { }
  1247.  
  1248.     CVisioMasters(const CVisioMasters& other)
  1249.         : CVisioUnknown(other) { }
  1250.  
  1251.     CVisioMasters(const IVMasters FAR * other, BOOL bAssumeResponsibility= FALSE)
  1252.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1253.  
  1254.     const CVisioMasters FAR & operator=(const CVisioMasters FAR &other)
  1255.         {
  1256.         if ( &other != this )
  1257.             CopyIP(other.GetUnknown());
  1258.  
  1259.         return *this;
  1260.         }
  1261.  
  1262.     const CVisioMasters FAR & operator=(const IVMasters FAR * other)
  1263.         {
  1264.         if ( (LPUNKNOWN)other != GetUnknown() )
  1265.             CopyIP((LPUNKNOWN)other);
  1266.  
  1267.         return *this;
  1268.         }
  1269.  
  1270.     virtual ~CVisioMasters() { }
  1271.  
  1272.     IVMasters FAR * GetIP() const { return (IVMasters FAR *) GetUnknown(); }
  1273.  
  1274.     operator IVMasters FAR * () { return (IVMasters FAR *) GetUnknown(); }
  1275.  
  1276. VW_PUBLIC:
  1277.     HRESULT Application(CVisioApplication FAR &rWrap);
  1278.     HRESULT ObjectType(short FAR *lpRet);
  1279.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex, CVisioMaster FAR &rWrap);
  1280.     HRESULT Count(short FAR *lpRet);
  1281.     HRESULT Document(CVisioDocument FAR &rWrap);
  1282.     HRESULT Stat(short FAR *lpRet);
  1283.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1284.     HRESULT PersistsEvents(short FAR *lpRet);
  1285.     HRESULT Add(CVisioMaster FAR &rWrap);
  1286.     HRESULT GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1287. };
  1288.  
  1289.  
  1290. //  ***************************************************************************
  1291. //  Declaration of class CVisioPage
  1292.  
  1293. class FAR CVisioPage : public CVisioUnknown
  1294. {
  1295. VW_PUBLIC:
  1296.     CVisioPage()
  1297.         : CVisioUnknown() { }
  1298.  
  1299.     CVisioPage(const CVisioPage& other)
  1300.         : CVisioUnknown(other) { }
  1301.  
  1302.     CVisioPage(const IVPage FAR * other, BOOL bAssumeResponsibility= FALSE)
  1303.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1304.  
  1305.     const CVisioPage FAR & operator=(const CVisioPage FAR &other)
  1306.         {
  1307.         if ( &other != this )
  1308.             CopyIP(other.GetUnknown());
  1309.  
  1310.         return *this;
  1311.         }
  1312.  
  1313.     const CVisioPage FAR & operator=(const IVPage FAR * other)
  1314.         {
  1315.         if ( (LPUNKNOWN)other != GetUnknown() )
  1316.             CopyIP((LPUNKNOWN)other);
  1317.  
  1318.         return *this;
  1319.         }
  1320.  
  1321.     virtual ~CVisioPage() { }
  1322.  
  1323.     IVPage FAR * GetIP() const { return (IVPage FAR *) GetUnknown(); }
  1324.  
  1325.     operator IVPage FAR * () { return (IVPage FAR *) GetUnknown(); }
  1326.  
  1327. VW_PUBLIC:
  1328.     HRESULT Document(CVisioDocument FAR &rWrap);
  1329.     HRESULT Application(CVisioApplication FAR &rWrap);
  1330.     HRESULT Stat(short FAR *lpRet);
  1331.     HRESULT getBackground(short FAR *lpRet);
  1332.     HRESULT putBackground(VW_CONST short param01);
  1333.     HRESULT Paste();
  1334.     HRESULT PasteSpecial(short Format);
  1335.     HRESULT ObjectType(short FAR *lpRet);
  1336.     HRESULT DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1337.     HRESULT DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1338.     HRESULT DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1339.     HRESULT Index(short FAR *lpRet);
  1340.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  1341.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1342.     HRESULT Shapes(CVisioShapes FAR &rWrap);
  1343.     HRESULT Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap);
  1344.     HRESULT AddGuide(short Type, double xPos, double yPos, CVisioShape FAR &rWrap);
  1345.     HRESULT BackPageAsObj(CVisioPage FAR &rWrap);
  1346.     HRESULT BackPageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1347.     HRESULT Print();
  1348.     HRESULT Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap);
  1349.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  1350.     HRESULT Layers(CVisioLayers FAR &rWrap);
  1351.     HRESULT PageSheet(CVisioShape FAR &rWrap);
  1352.     HRESULT Delete(short fRenumberPages);
  1353.     HRESULT CenterDrawing();
  1354.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1355.     HRESULT PersistsEvents(short FAR *lpRet);
  1356.     HRESULT DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap);
  1357.     HRESULT DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap);
  1358.     HRESULT DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap);
  1359.     HRESULT InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap);
  1360.     HRESULT InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap);
  1361.     HRESULT OpenDrawWindow(CVisioWindow FAR &rWrap);
  1362.     HRESULT DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet);
  1363.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1364.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1365.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  1366.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  1367.     HRESULT Connects(CVisioConnects FAR &rWrap);
  1368.     HRESULT getBackPage(VARIANT_HELPER_CLASS FAR &rWrap);
  1369.     HRESULT putBackPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  1370.     HRESULT Layout();
  1371.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1372.     HRESULT ID(short FAR *lpRet);
  1373.     HRESULT OLEObjects(CVisioOLEObjects FAR &rWrap);
  1374. };
  1375.  
  1376.  
  1377. //  ***************************************************************************
  1378. //  Declaration of class CVisioPages
  1379.  
  1380. class FAR CVisioPages : public CVisioUnknown
  1381. {
  1382. VW_PUBLIC:
  1383.     CVisioPages()
  1384.         : CVisioUnknown() { }
  1385.  
  1386.     CVisioPages(const CVisioPages& other)
  1387.         : CVisioUnknown(other) { }
  1388.  
  1389.     CVisioPages(const IVPages FAR * other, BOOL bAssumeResponsibility= FALSE)
  1390.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1391.  
  1392.     const CVisioPages FAR & operator=(const CVisioPages FAR &other)
  1393.         {
  1394.         if ( &other != this )
  1395.             CopyIP(other.GetUnknown());
  1396.  
  1397.         return *this;
  1398.         }
  1399.  
  1400.     const CVisioPages FAR & operator=(const IVPages FAR * other)
  1401.         {
  1402.         if ( (LPUNKNOWN)other != GetUnknown() )
  1403.             CopyIP((LPUNKNOWN)other);
  1404.  
  1405.         return *this;
  1406.         }
  1407.  
  1408.     virtual ~CVisioPages() { }
  1409.  
  1410.     IVPages FAR * GetIP() const { return (IVPages FAR *) GetUnknown(); }
  1411.  
  1412.     operator IVPages FAR * () { return (IVPages FAR *) GetUnknown(); }
  1413.  
  1414. VW_PUBLIC:
  1415.     HRESULT Application(CVisioApplication FAR &rWrap);
  1416.     HRESULT ObjectType(short FAR *lpRet);
  1417.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioPage FAR &rWrap);
  1418.     HRESULT Count(short FAR *lpRet);
  1419.     HRESULT Add(CVisioPage FAR &rWrap);
  1420.     HRESULT Document(CVisioDocument FAR &rWrap);
  1421.     HRESULT Stat(short FAR *lpRet);
  1422.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1423.     HRESULT PersistsEvents(short FAR *lpRet);
  1424.     HRESULT GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1425. };
  1426.  
  1427.  
  1428. //  ***************************************************************************
  1429. //  Declaration of class CVisioSelection
  1430.  
  1431. class FAR CVisioSelection : public CVisioUnknown
  1432. {
  1433. VW_PUBLIC:
  1434.     CVisioSelection()
  1435.         : CVisioUnknown() { }
  1436.  
  1437.     CVisioSelection(const CVisioSelection& other)
  1438.         : CVisioUnknown(other) { }
  1439.  
  1440.     CVisioSelection(const IVSelection FAR * other, BOOL bAssumeResponsibility= FALSE)
  1441.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1442.  
  1443.     const CVisioSelection FAR & operator=(const CVisioSelection FAR &other)
  1444.         {
  1445.         if ( &other != this )
  1446.             CopyIP(other.GetUnknown());
  1447.  
  1448.         return *this;
  1449.         }
  1450.  
  1451.     const CVisioSelection FAR & operator=(const IVSelection FAR * other)
  1452.         {
  1453.         if ( (LPUNKNOWN)other != GetUnknown() )
  1454.             CopyIP((LPUNKNOWN)other);
  1455.  
  1456.         return *this;
  1457.         }
  1458.  
  1459.     virtual ~CVisioSelection() { }
  1460.  
  1461.     IVSelection FAR * GetIP() const { return (IVSelection FAR *) GetUnknown(); }
  1462.  
  1463.     operator IVSelection FAR * () { return (IVSelection FAR *) GetUnknown(); }
  1464.  
  1465. VW_PUBLIC:
  1466.     HRESULT Application(CVisioApplication FAR &rWrap);
  1467.     HRESULT Stat(short FAR *lpRet);
  1468.     HRESULT ObjectType(short FAR *lpRet);
  1469.     HRESULT Item(short Index, CVisioShape FAR &rWrap);
  1470.     HRESULT Count(short FAR *lpRet);
  1471.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  1472.     HRESULT Document(CVisioDocument FAR &rWrap);
  1473.     HRESULT ContainingPage(CVisioPage FAR &rWrap);
  1474.     HRESULT ContainingMaster(CVisioMaster FAR &rWrap);
  1475.     HRESULT ContainingShape(CVisioShape FAR &rWrap);
  1476.     HRESULT BringForward();
  1477.     HRESULT BringToFront();
  1478.     HRESULT SendBackward();
  1479.     HRESULT SendToBack();
  1480.     HRESULT getStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1481.     HRESULT putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1482.     HRESULT StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1483.     HRESULT getLineStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1484.     HRESULT putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1485.     HRESULT LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1486.     HRESULT getFillStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1487.     HRESULT putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1488.     HRESULT FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1489.     HRESULT getTextStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1490.     HRESULT putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1491.     HRESULT TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1492.     HRESULT Combine();
  1493.     HRESULT Fragment();
  1494.     HRESULT Intersect();
  1495.     HRESULT Subtract();
  1496.     HRESULT Union();
  1497.     HRESULT FlipHorizontal();
  1498.     HRESULT FlipVertical();
  1499.     HRESULT ReverseEnds();
  1500.     HRESULT Rotate90();
  1501.     HRESULT Copy();
  1502.     HRESULT Cut();
  1503.     HRESULT Delete();
  1504.     HRESULT Duplicate();
  1505.     HRESULT Group();
  1506.     HRESULT ConvertToGroup();
  1507.     HRESULT Ungroup();
  1508.     HRESULT SelectAll();
  1509.     HRESULT DeselectAll();
  1510.     HRESULT Select(CVisioShape FAR &SheetObject, short SelectAction);
  1511.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1512.     HRESULT PersistsEvents(short FAR *lpRet);
  1513.     HRESULT Trim();
  1514.     HRESULT Join();
  1515.     HRESULT FitCurve(double Tolerance, short Flags);
  1516.     HRESULT Layout();
  1517.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1518. };
  1519.  
  1520.  
  1521. //  ***************************************************************************
  1522. //  Declaration of class CVisioShape
  1523.  
  1524. class FAR CVisioShape : public CVisioUnknown
  1525. {
  1526. VW_PUBLIC:
  1527.     CVisioShape()
  1528.         : CVisioUnknown() { }
  1529.  
  1530.     CVisioShape(const CVisioShape& other)
  1531.         : CVisioUnknown(other) { }
  1532.  
  1533.     CVisioShape(const IVShape FAR * other, BOOL bAssumeResponsibility= FALSE)
  1534.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1535.  
  1536.     const CVisioShape FAR & operator=(const CVisioShape FAR &other)
  1537.         {
  1538.         if ( &other != this )
  1539.             CopyIP(other.GetUnknown());
  1540.  
  1541.         return *this;
  1542.         }
  1543.  
  1544.     const CVisioShape FAR & operator=(const IVShape FAR * other)
  1545.         {
  1546.         if ( (LPUNKNOWN)other != GetUnknown() )
  1547.             CopyIP((LPUNKNOWN)other);
  1548.  
  1549.         return *this;
  1550.         }
  1551.  
  1552.     virtual ~CVisioShape() { }
  1553.  
  1554.     IVShape FAR * GetIP() const { return (IVShape FAR *) GetUnknown(); }
  1555.  
  1556.     operator IVShape FAR * () { return (IVShape FAR *) GetUnknown(); }
  1557.  
  1558. VW_PUBLIC:
  1559.     HRESULT Group();
  1560.     HRESULT BringForward();
  1561.     HRESULT BringToFront();
  1562.     HRESULT ConvertToGroup();
  1563.     HRESULT FlipHorizontal();
  1564.     HRESULT FlipVertical();
  1565.     HRESULT ReverseEnds();
  1566.     HRESULT SendBackward();
  1567.     HRESULT SendToBack();
  1568.     HRESULT Rotate90();
  1569.     HRESULT Ungroup();
  1570.     HRESULT Document(CVisioDocument FAR &rWrap);
  1571.     HRESULT Parent(IDispatch FAR *FAR *lpRet);
  1572.     HRESULT Application(CVisioApplication FAR &rWrap);
  1573.     HRESULT Stat(short FAR *lpRet);
  1574.     HRESULT Master(CVisioMaster FAR &rWrap);
  1575.     HRESULT Type(short FAR *lpRet);
  1576.     HRESULT ObjectType(short FAR *lpRet);
  1577.     HRESULT Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap);
  1578.     HRESULT CellsSRC(short Section, short Row, short Column, CVisioCell FAR &rWrap);
  1579.     HRESULT Shapes(CVisioShapes FAR &rWrap);
  1580.     HRESULT getData1(BSTR_HELPER_CLASS FAR &rWrap);
  1581.     HRESULT putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1582.     HRESULT getData2(BSTR_HELPER_CLASS FAR &rWrap);
  1583.     HRESULT putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1584.     HRESULT getData3(BSTR_HELPER_CLASS FAR &rWrap);
  1585.     HRESULT putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1586.     HRESULT getHelp(BSTR_HELPER_CLASS FAR &rWrap);
  1587.     HRESULT putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1588.     HRESULT NameID(BSTR_HELPER_CLASS FAR &rWrap);
  1589.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  1590.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1591.     HRESULT getText(BSTR_HELPER_CLASS FAR &rWrap);
  1592.     HRESULT putText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1593.     HRESULT CharCount(long FAR *lpRet);
  1594.     HRESULT Characters(CVisioCharacters FAR &rWrap);
  1595.     HRESULT Copy();
  1596.     HRESULT Cut();
  1597.     HRESULT Delete();
  1598.     HRESULT Duplicate();
  1599.     HRESULT Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap);
  1600.     HRESULT getOneD(short FAR *lpRet);
  1601.     HRESULT putOneD(VW_CONST short param01);
  1602.     HRESULT GeometryCount(short FAR *lpRet);
  1603.     HRESULT RowCount(short Section, short FAR *lpRet);
  1604.     HRESULT AddSection(short Section, short FAR *lpRet);
  1605.     HRESULT DeleteSection(short Section);
  1606.     HRESULT AddRow(short Section, short Row, short RowTag, short FAR *lpRet);
  1607.     HRESULT DeleteRow(short Section, short Row);
  1608.     HRESULT RowsCellCount(short Section, short Row, short FAR *lpRet);
  1609.     HRESULT getRowType(short Section, short Row, short FAR *lpRet);
  1610.     HRESULT putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  1611.     HRESULT SetCenter(double xPos, double yPos);
  1612.     HRESULT SetBegin(double xPos, double yPos);
  1613.     HRESULT SetEnd(double xPos, double yPos);
  1614.     HRESULT Connects(CVisioConnects FAR &rWrap);
  1615.     HRESULT Index(short FAR *lpRet);
  1616.     HRESULT getStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1617.     HRESULT putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1618.     HRESULT StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1619.     HRESULT getLineStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1620.     HRESULT putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1621.     HRESULT LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1622.     HRESULT getFillStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1623.     HRESULT putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1624.     HRESULT FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1625.     HRESULT getTextStyle(BSTR_HELPER_CLASS FAR &rWrap);
  1626.     HRESULT putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1627.     HRESULT TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1628.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  1629.     HRESULT AreaIU(double FAR *lpRet);
  1630.     HRESULT LengthIU(double FAR *lpRet);
  1631.     HRESULT GeomExIf(short fFill, double LineRes, IUnknown FAR *FAR *lpRet);
  1632.     HRESULT UniqueID(short fUniqueID, BSTR_HELPER_CLASS FAR &rWrap);
  1633.     HRESULT ContainingPage(CVisioPage FAR &rWrap);
  1634.     HRESULT ContainingMaster(CVisioMaster FAR &rWrap);
  1635.     HRESULT ContainingShape(CVisioShape FAR &rWrap);
  1636.     HRESULT SectionExists(short Section, short fLocalExists, short FAR *lpRet);
  1637.     HRESULT RowExists(short Section, short Row, short fLocalExists, short FAR *lpRet);
  1638.     HRESULT CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists, short FAR *lpRet);
  1639.     HRESULT CellsSRCExists(short Section, short Row, short Column, short fLocalExists, short FAR *lpRet);
  1640.     HRESULT LayerCount(short FAR *lpRet);
  1641.     HRESULT Layer(short Index, CVisioLayer FAR &rWrap);
  1642.     HRESULT AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag, short FAR *lpRet);
  1643.     HRESULT AddRows(short Section, short Row, short RowTag, short RowCount, short FAR *lpRet);
  1644.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1645.     HRESULT PersistsEvents(short FAR *lpRet);
  1646.     HRESULT DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1647.     HRESULT DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1648.     HRESULT DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap);
  1649.     HRESULT DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap);
  1650.     HRESULT DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap);
  1651.     HRESULT DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap);
  1652.     HRESULT FitCurve(double Tolerance, short Flags);
  1653.     HRESULT Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap);
  1654.     HRESULT CenterDrawing();
  1655.     HRESULT InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap);
  1656.     HRESULT InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap);
  1657.     HRESULT ClassID(BSTR_HELPER_CLASS FAR &rWrap);
  1658.     HRESULT ForeignType(short FAR *lpRet);
  1659.     HRESULT Object(IDispatch FAR *FAR *lpRet);
  1660.     HRESULT OpenDrawWindow(CVisioWindow FAR &rWrap);
  1661.     HRESULT OpenSheetWindow(CVisioWindow FAR &rWrap);
  1662.     HRESULT ID(short FAR *lpRet);
  1663.     HRESULT DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet);
  1664.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1665.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1666.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  1667.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  1668.     HRESULT FromConnects(CVisioConnects FAR &rWrap);
  1669.     HRESULT Layout();
  1670.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1671.     HRESULT HitTest(double xPos, double yPos, double Tolerance, short FAR *lpRet);
  1672.     HRESULT Hyperlink(CVisioHyperlink FAR &rWrap);
  1673.     HRESULT ProgID(BSTR_HELPER_CLASS FAR &rWrap);
  1674.     HRESULT ObjectIsInherited(short FAR *lpRet);
  1675.     HRESULT Paths(CVisioPaths FAR &rWrap);
  1676.     HRESULT PathsLocal(CVisioPaths FAR &rWrap);
  1677.     HRESULT AddHyperlink(CVisioHyperlink FAR &rWrap);
  1678. };
  1679.  
  1680.  
  1681. //  ***************************************************************************
  1682. //  Declaration of class CVisioShapes
  1683.  
  1684. class FAR CVisioShapes : public CVisioUnknown
  1685. {
  1686. VW_PUBLIC:
  1687.     CVisioShapes()
  1688.         : CVisioUnknown() { }
  1689.  
  1690.     CVisioShapes(const CVisioShapes& other)
  1691.         : CVisioUnknown(other) { }
  1692.  
  1693.     CVisioShapes(const IVShapes FAR * other, BOOL bAssumeResponsibility= FALSE)
  1694.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1695.  
  1696.     const CVisioShapes FAR & operator=(const CVisioShapes FAR &other)
  1697.         {
  1698.         if ( &other != this )
  1699.             CopyIP(other.GetUnknown());
  1700.  
  1701.         return *this;
  1702.         }
  1703.  
  1704.     const CVisioShapes FAR & operator=(const IVShapes FAR * other)
  1705.         {
  1706.         if ( (LPUNKNOWN)other != GetUnknown() )
  1707.             CopyIP((LPUNKNOWN)other);
  1708.  
  1709.         return *this;
  1710.         }
  1711.  
  1712.     virtual ~CVisioShapes() { }
  1713.  
  1714.     IVShapes FAR * GetIP() const { return (IVShapes FAR *) GetUnknown(); }
  1715.  
  1716.     operator IVShapes FAR * () { return (IVShapes FAR *) GetUnknown(); }
  1717.  
  1718. VW_PUBLIC:
  1719.     HRESULT Application(CVisioApplication FAR &rWrap);
  1720.     HRESULT ObjectType(short FAR *lpRet);
  1721.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex, CVisioShape FAR &rWrap);
  1722.     HRESULT Count(short FAR *lpRet);
  1723.     HRESULT Document(CVisioDocument FAR &rWrap);
  1724.     HRESULT ContainingPage(CVisioPage FAR &rWrap);
  1725.     HRESULT ContainingMaster(CVisioMaster FAR &rWrap);
  1726.     HRESULT ContainingShape(CVisioShape FAR &rWrap);
  1727.     HRESULT CenterDrawing();
  1728.     HRESULT Stat(short FAR *lpRet);
  1729.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1730.     HRESULT PersistsEvents(short FAR *lpRet);
  1731.     HRESULT ItemFromID(short ObjectID, CVisioShape FAR &rWrap);
  1732. };
  1733.  
  1734.  
  1735. //  ***************************************************************************
  1736. //  Declaration of class CVisioStyle
  1737.  
  1738. class FAR CVisioStyle : public CVisioUnknown
  1739. {
  1740. VW_PUBLIC:
  1741.     CVisioStyle()
  1742.         : CVisioUnknown() { }
  1743.  
  1744.     CVisioStyle(const CVisioStyle& other)
  1745.         : CVisioUnknown(other) { }
  1746.  
  1747.     CVisioStyle(const IVStyle FAR * other, BOOL bAssumeResponsibility= FALSE)
  1748.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1749.  
  1750.     const CVisioStyle FAR & operator=(const CVisioStyle FAR &other)
  1751.         {
  1752.         if ( &other != this )
  1753.             CopyIP(other.GetUnknown());
  1754.  
  1755.         return *this;
  1756.         }
  1757.  
  1758.     const CVisioStyle FAR & operator=(const IVStyle FAR * other)
  1759.         {
  1760.         if ( (LPUNKNOWN)other != GetUnknown() )
  1761.             CopyIP((LPUNKNOWN)other);
  1762.  
  1763.         return *this;
  1764.         }
  1765.  
  1766.     virtual ~CVisioStyle() { }
  1767.  
  1768.     IVStyle FAR * GetIP() const { return (IVStyle FAR *) GetUnknown(); }
  1769.  
  1770.     operator IVStyle FAR * () { return (IVStyle FAR *) GetUnknown(); }
  1771.  
  1772. VW_PUBLIC:
  1773.     HRESULT Application(CVisioApplication FAR &rWrap);
  1774.     HRESULT Stat(short FAR *lpRet);
  1775.     HRESULT ObjectType(short FAR *lpRet);
  1776.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  1777.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1778.     HRESULT Index(short FAR *lpRet);
  1779.     HRESULT Document(CVisioDocument FAR &rWrap);
  1780.     HRESULT getBasedOn(BSTR_HELPER_CLASS FAR &rWrap);
  1781.     HRESULT putBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1782.     HRESULT getTextBasedOn(BSTR_HELPER_CLASS FAR &rWrap);
  1783.     HRESULT putTextBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1784.     HRESULT getLineBasedOn(BSTR_HELPER_CLASS FAR &rWrap);
  1785.     HRESULT putLineBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1786.     HRESULT getFillBasedOn(BSTR_HELPER_CLASS FAR &rWrap);
  1787.     HRESULT putFillBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1788.     HRESULT getIncludesText(short FAR *lpRet);
  1789.     HRESULT putIncludesText(VW_CONST short param01);
  1790.     HRESULT getIncludesLine(short FAR *lpRet);
  1791.     HRESULT putIncludesLine(VW_CONST short param01);
  1792.     HRESULT getIncludesFill(short FAR *lpRet);
  1793.     HRESULT putIncludesFill(VW_CONST short param01);
  1794.     HRESULT Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap);
  1795.     HRESULT Delete();
  1796.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1797.     HRESULT PersistsEvents(short FAR *lpRet);
  1798.     HRESULT ID(short FAR *lpRet);
  1799.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1800.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1801.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  1802.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  1803. };
  1804.  
  1805.  
  1806. //  ***************************************************************************
  1807. //  Declaration of class CVisioStyles
  1808.  
  1809. class FAR CVisioStyles : public CVisioUnknown
  1810. {
  1811. VW_PUBLIC:
  1812.     CVisioStyles()
  1813.         : CVisioUnknown() { }
  1814.  
  1815.     CVisioStyles(const CVisioStyles& other)
  1816.         : CVisioUnknown(other) { }
  1817.  
  1818.     CVisioStyles(const IVStyles FAR * other, BOOL bAssumeResponsibility= FALSE)
  1819.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1820.  
  1821.     const CVisioStyles FAR & operator=(const CVisioStyles FAR &other)
  1822.         {
  1823.         if ( &other != this )
  1824.             CopyIP(other.GetUnknown());
  1825.  
  1826.         return *this;
  1827.         }
  1828.  
  1829.     const CVisioStyles FAR & operator=(const IVStyles FAR * other)
  1830.         {
  1831.         if ( (LPUNKNOWN)other != GetUnknown() )
  1832.             CopyIP((LPUNKNOWN)other);
  1833.  
  1834.         return *this;
  1835.         }
  1836.  
  1837.     virtual ~CVisioStyles() { }
  1838.  
  1839.     IVStyles FAR * GetIP() const { return (IVStyles FAR *) GetUnknown(); }
  1840.  
  1841.     operator IVStyles FAR * () { return (IVStyles FAR *) GetUnknown(); }
  1842.  
  1843. VW_PUBLIC:
  1844.     HRESULT Application(CVisioApplication FAR &rWrap);
  1845.     HRESULT ObjectType(short FAR *lpRet);
  1846.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioStyle FAR &rWrap);
  1847.     HRESULT Count(short FAR *lpRet);
  1848.     HRESULT Document(CVisioDocument FAR &rWrap);
  1849.     HRESULT Add(BSTR_HELPER_CLASS FAR &StyleName, BSTR_HELPER_CLASS FAR &BasedOn, short fIncludesText, short fIncludesLine, short fIncludesFill, CVisioStyle FAR &rWrap);
  1850.     HRESULT Stat(short FAR *lpRet);
  1851.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1852.     HRESULT PersistsEvents(short FAR *lpRet);
  1853.     HRESULT ItemFromID(short ObjectID, CVisioStyle FAR &rWrap);
  1854.     HRESULT GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1855. };
  1856.  
  1857.  
  1858. //  ***************************************************************************
  1859. //  Declaration of class CVisioWindow
  1860.  
  1861. class FAR CVisioWindow : public CVisioUnknown
  1862. {
  1863. VW_PUBLIC:
  1864.     CVisioWindow()
  1865.         : CVisioUnknown() { }
  1866.  
  1867.     CVisioWindow(const CVisioWindow& other)
  1868.         : CVisioUnknown(other) { }
  1869.  
  1870.     CVisioWindow(const IVWindow FAR * other, BOOL bAssumeResponsibility= FALSE)
  1871.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1872.  
  1873.     const CVisioWindow FAR & operator=(const CVisioWindow FAR &other)
  1874.         {
  1875.         if ( &other != this )
  1876.             CopyIP(other.GetUnknown());
  1877.  
  1878.         return *this;
  1879.         }
  1880.  
  1881.     const CVisioWindow FAR & operator=(const IVWindow FAR * other)
  1882.         {
  1883.         if ( (LPUNKNOWN)other != GetUnknown() )
  1884.             CopyIP((LPUNKNOWN)other);
  1885.  
  1886.         return *this;
  1887.         }
  1888.  
  1889.     virtual ~CVisioWindow() { }
  1890.  
  1891.     IVWindow FAR * GetIP() const { return (IVWindow FAR *) GetUnknown(); }
  1892.  
  1893.     operator IVWindow FAR * () { return (IVWindow FAR *) GetUnknown(); }
  1894.  
  1895. VW_PUBLIC:
  1896.     HRESULT Application(CVisioApplication FAR &rWrap);
  1897.     HRESULT Stat(short FAR *lpRet);
  1898.     HRESULT ObjectType(short FAR *lpRet);
  1899.     HRESULT Activate();
  1900.     HRESULT Type(short FAR *lpRet);
  1901.     HRESULT Document(CVisioDocument FAR &rWrap);
  1902.     HRESULT PageAsObj(CVisioPage FAR &rWrap);
  1903.     HRESULT PageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1904.     HRESULT getZoom(double FAR *lpRet);
  1905.     HRESULT putZoom(VW_CONST double param01);
  1906.     HRESULT Close();
  1907.     HRESULT SelectAll();
  1908.     HRESULT DeselectAll();
  1909.     HRESULT Selection(CVisioSelection FAR &rWrap);
  1910.     HRESULT Select(CVisioShape FAR &SheetObject, short SelectAction);
  1911.     HRESULT Index(short FAR *lpRet);
  1912.     HRESULT Cut();
  1913.     HRESULT Copy();
  1914.     HRESULT Paste();
  1915.     HRESULT Delete();
  1916.     HRESULT Duplicate();
  1917.     HRESULT Group();
  1918.     HRESULT Union();
  1919.     HRESULT Combine();
  1920.     HRESULT Fragment();
  1921.     HRESULT AddToGroup();
  1922.     HRESULT RemoveFromGroup();
  1923.     HRESULT SubType(short FAR *lpRet);
  1924.     HRESULT Intersect();
  1925.     HRESULT Subtract();
  1926.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1927.     HRESULT PersistsEvents(short FAR *lpRet);
  1928.     HRESULT WindowHandle(short FAR *lpRet);
  1929.     HRESULT WindowHandle32(long FAR *lpRet);
  1930.     HRESULT Trim();
  1931.     HRESULT Join();
  1932.     HRESULT getShowRulers(short FAR *lpRet);
  1933.     HRESULT putShowRulers(VW_CONST short param01);
  1934.     HRESULT getShowGrid(short FAR *lpRet);
  1935.     HRESULT putShowGrid(VW_CONST short param01);
  1936.     HRESULT getShowGuides(short FAR *lpRet);
  1937.     HRESULT putShowGuides(VW_CONST short param01);
  1938.     HRESULT getShowConnectPoints(short FAR *lpRet);
  1939.     HRESULT putShowConnectPoints(VW_CONST short param01);
  1940.     HRESULT getShowPageBreaks(short FAR *lpRet);
  1941.     HRESULT putShowPageBreaks(VW_CONST short param01);
  1942.     HRESULT getPage(VARIANT_HELPER_CLASS FAR &rWrap);
  1943.     HRESULT putPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  1944.     HRESULT DockedStencils(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1945.     HRESULT Master(VARIANT_HELPER_CLASS FAR &rWrap);
  1946.     HRESULT getShowScrollBars(short FAR *lpRet);
  1947.     HRESULT putShowScrollBars(VW_CONST short param01);
  1948. };
  1949.  
  1950.  
  1951. //  ***************************************************************************
  1952. //  Declaration of class CVisioWindows
  1953.  
  1954. class FAR CVisioWindows : public CVisioUnknown
  1955. {
  1956. VW_PUBLIC:
  1957.     CVisioWindows()
  1958.         : CVisioUnknown() { }
  1959.  
  1960.     CVisioWindows(const CVisioWindows& other)
  1961.         : CVisioUnknown(other) { }
  1962.  
  1963.     CVisioWindows(const IVWindows FAR * other, BOOL bAssumeResponsibility= FALSE)
  1964.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1965.  
  1966.     const CVisioWindows FAR & operator=(const CVisioWindows FAR &other)
  1967.         {
  1968.         if ( &other != this )
  1969.             CopyIP(other.GetUnknown());
  1970.  
  1971.         return *this;
  1972.         }
  1973.  
  1974.     const CVisioWindows FAR & operator=(const IVWindows FAR * other)
  1975.         {
  1976.         if ( (LPUNKNOWN)other != GetUnknown() )
  1977.             CopyIP((LPUNKNOWN)other);
  1978.  
  1979.         return *this;
  1980.         }
  1981.  
  1982.     virtual ~CVisioWindows() { }
  1983.  
  1984.     IVWindows FAR * GetIP() const { return (IVWindows FAR *) GetUnknown(); }
  1985.  
  1986.     operator IVWindows FAR * () { return (IVWindows FAR *) GetUnknown(); }
  1987.  
  1988. VW_PUBLIC:
  1989.     HRESULT Application(CVisioApplication FAR &rWrap);
  1990.     HRESULT ObjectType(short FAR *lpRet);
  1991.     HRESULT Item(short Index, CVisioWindow FAR &rWrap);
  1992.     HRESULT Count(short FAR *lpRet);
  1993.     HRESULT Arrange();
  1994.     HRESULT EventList(CVisioEventList FAR &rWrap);
  1995.     HRESULT PersistsEvents(short FAR *lpRet);
  1996. };
  1997.  
  1998.  
  1999. //  ***************************************************************************
  2000. //  Declaration of class CVisioLayer
  2001.  
  2002. class FAR CVisioLayer : public CVisioUnknown
  2003. {
  2004. VW_PUBLIC:
  2005.     CVisioLayer()
  2006.         : CVisioUnknown() { }
  2007.  
  2008.     CVisioLayer(const CVisioLayer& other)
  2009.         : CVisioUnknown(other) { }
  2010.  
  2011.     CVisioLayer(const IVLayer FAR * other, BOOL bAssumeResponsibility= FALSE)
  2012.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2013.  
  2014.     const CVisioLayer FAR & operator=(const CVisioLayer FAR &other)
  2015.         {
  2016.         if ( &other != this )
  2017.             CopyIP(other.GetUnknown());
  2018.  
  2019.         return *this;
  2020.         }
  2021.  
  2022.     const CVisioLayer FAR & operator=(const IVLayer FAR * other)
  2023.         {
  2024.         if ( (LPUNKNOWN)other != GetUnknown() )
  2025.             CopyIP((LPUNKNOWN)other);
  2026.  
  2027.         return *this;
  2028.         }
  2029.  
  2030.     virtual ~CVisioLayer() { }
  2031.  
  2032.     IVLayer FAR * GetIP() const { return (IVLayer FAR *) GetUnknown(); }
  2033.  
  2034.     operator IVLayer FAR * () { return (IVLayer FAR *) GetUnknown(); }
  2035.  
  2036. VW_PUBLIC:
  2037.     HRESULT Application(CVisioApplication FAR &rWrap);
  2038.     HRESULT Document(CVisioDocument FAR &rWrap);
  2039.     HRESULT Page(CVisioPage FAR &rWrap);
  2040.     HRESULT Master(CVisioMaster FAR &rWrap);
  2041.     HRESULT Index(short FAR *lpRet);
  2042.     HRESULT Row(short FAR *lpRet);
  2043.     HRESULT Add(CVisioShape FAR &SheetObject, short fPresMems);
  2044.     HRESULT Remove(CVisioShape FAR &SheetObject, short fPresMems);
  2045.     HRESULT Delete(short fDeleteShapes);
  2046.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  2047.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2048.     HRESULT CellsC(short Column, CVisioCell FAR &rWrap);
  2049.     HRESULT ObjectType(short FAR *lpRet);
  2050.     HRESULT Stat(short FAR *lpRet);
  2051.     HRESULT EventList(CVisioEventList FAR &rWrap);
  2052.     HRESULT PersistsEvents(short FAR *lpRet);
  2053. };
  2054.  
  2055.  
  2056. //  ***************************************************************************
  2057. //  Declaration of class CVisioLayers
  2058.  
  2059. class FAR CVisioLayers : public CVisioUnknown
  2060. {
  2061. VW_PUBLIC:
  2062.     CVisioLayers()
  2063.         : CVisioUnknown() { }
  2064.  
  2065.     CVisioLayers(const CVisioLayers& other)
  2066.         : CVisioUnknown(other) { }
  2067.  
  2068.     CVisioLayers(const IVLayers FAR * other, BOOL bAssumeResponsibility= FALSE)
  2069.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2070.  
  2071.     const CVisioLayers FAR & operator=(const CVisioLayers FAR &other)
  2072.         {
  2073.         if ( &other != this )
  2074.             CopyIP(other.GetUnknown());
  2075.  
  2076.         return *this;
  2077.         }
  2078.  
  2079.     const CVisioLayers FAR & operator=(const IVLayers FAR * other)
  2080.         {
  2081.         if ( (LPUNKNOWN)other != GetUnknown() )
  2082.             CopyIP((LPUNKNOWN)other);
  2083.  
  2084.         return *this;
  2085.         }
  2086.  
  2087.     virtual ~CVisioLayers() { }
  2088.  
  2089.     IVLayers FAR * GetIP() const { return (IVLayers FAR *) GetUnknown(); }
  2090.  
  2091.     operator IVLayers FAR * () { return (IVLayers FAR *) GetUnknown(); }
  2092.  
  2093. VW_PUBLIC:
  2094.     HRESULT Application(CVisioApplication FAR &rWrap);
  2095.     HRESULT Document(CVisioDocument FAR &rWrap);
  2096.     HRESULT Page(CVisioPage FAR &rWrap);
  2097.     HRESULT Master(CVisioMaster FAR &rWrap);
  2098.     HRESULT Count(short FAR *lpRet);
  2099.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioLayer FAR &rWrap);
  2100.     HRESULT Add(BSTR_HELPER_CLASS FAR &LayerName, CVisioLayer FAR &rWrap);
  2101.     HRESULT ObjectType(short FAR *lpRet);
  2102.     HRESULT Stat(short FAR *lpRet);
  2103.     HRESULT EventList(CVisioEventList FAR &rWrap);
  2104.     HRESULT PersistsEvents(short FAR *lpRet);
  2105. };
  2106.  
  2107.  
  2108. //  ***************************************************************************
  2109. //  Declaration of class CVisioFont
  2110.  
  2111. class FAR CVisioFont : public CVisioUnknown
  2112. {
  2113. VW_PUBLIC:
  2114.     CVisioFont()
  2115.         : CVisioUnknown() { }
  2116.  
  2117.     CVisioFont(const CVisioFont& other)
  2118.         : CVisioUnknown(other) { }
  2119.  
  2120.     CVisioFont(const IVFont FAR * other, BOOL bAssumeResponsibility= FALSE)
  2121.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2122.  
  2123.     const CVisioFont FAR & operator=(const CVisioFont FAR &other)
  2124.         {
  2125.         if ( &other != this )
  2126.             CopyIP(other.GetUnknown());
  2127.  
  2128.         return *this;
  2129.         }
  2130.  
  2131.     const CVisioFont FAR & operator=(const IVFont FAR * other)
  2132.         {
  2133.         if ( (LPUNKNOWN)other != GetUnknown() )
  2134.             CopyIP((LPUNKNOWN)other);
  2135.  
  2136.         return *this;
  2137.         }
  2138.  
  2139.     virtual ~CVisioFont() { }
  2140.  
  2141.     IVFont FAR * GetIP() const { return (IVFont FAR *) GetUnknown(); }
  2142.  
  2143.     operator IVFont FAR * () { return (IVFont FAR *) GetUnknown(); }
  2144.  
  2145. VW_PUBLIC:
  2146.     HRESULT Application(CVisioApplication FAR &rWrap);
  2147.     HRESULT Document(CVisioDocument FAR &rWrap);
  2148.     HRESULT Index(short FAR *lpRet);
  2149.     HRESULT Name(BSTR_HELPER_CLASS FAR &rWrap);
  2150.     HRESULT ID(short FAR *lpRet);
  2151.     HRESULT Attributes(short FAR *lpRet);
  2152.     HRESULT CharSet(short FAR *lpRet);
  2153.     HRESULT PitchAndFamily(short FAR *lpRet);
  2154.     HRESULT ObjectType(short FAR *lpRet);
  2155.     HRESULT Stat(short FAR *lpRet);
  2156. };
  2157.  
  2158.  
  2159. //  ***************************************************************************
  2160. //  Declaration of class CVisioFonts
  2161.  
  2162. class FAR CVisioFonts : public CVisioUnknown
  2163. {
  2164. VW_PUBLIC:
  2165.     CVisioFonts()
  2166.         : CVisioUnknown() { }
  2167.  
  2168.     CVisioFonts(const CVisioFonts& other)
  2169.         : CVisioUnknown(other) { }
  2170.  
  2171.     CVisioFonts(const IVFonts FAR * other, BOOL bAssumeResponsibility= FALSE)
  2172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2173.  
  2174.     const CVisioFonts FAR & operator=(const CVisioFonts FAR &other)
  2175.         {
  2176.         if ( &other != this )
  2177.             CopyIP(other.GetUnknown());
  2178.  
  2179.         return *this;
  2180.         }
  2181.  
  2182.     const CVisioFonts FAR & operator=(const IVFonts FAR * other)
  2183.         {
  2184.         if ( (LPUNKNOWN)other != GetUnknown() )
  2185.             CopyIP((LPUNKNOWN)other);
  2186.  
  2187.         return *this;
  2188.         }
  2189.  
  2190.     virtual ~CVisioFonts() { }
  2191.  
  2192.     IVFonts FAR * GetIP() const { return (IVFonts FAR *) GetUnknown(); }
  2193.  
  2194.     operator IVFonts FAR * () { return (IVFonts FAR *) GetUnknown(); }
  2195.  
  2196. VW_PUBLIC:
  2197.     HRESULT Application(CVisioApplication FAR &rWrap);
  2198.     HRESULT Document(CVisioDocument FAR &rWrap);
  2199.     HRESULT Count(short FAR *lpRet);
  2200.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioFont FAR &rWrap);
  2201.     HRESULT ItemFromID(long ObjectID, CVisioFont FAR &rWrap);
  2202.     HRESULT ObjectType(short FAR *lpRet);
  2203.     HRESULT Stat(short FAR *lpRet);
  2204. };
  2205.  
  2206.  
  2207. //  ***************************************************************************
  2208. //  Declaration of class CVisioColor
  2209.  
  2210. class FAR CVisioColor : public CVisioUnknown
  2211. {
  2212. VW_PUBLIC:
  2213.     CVisioColor()
  2214.         : CVisioUnknown() { }
  2215.  
  2216.     CVisioColor(const CVisioColor& other)
  2217.         : CVisioUnknown(other) { }
  2218.  
  2219.     CVisioColor(const IVColor FAR * other, BOOL bAssumeResponsibility= FALSE)
  2220.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2221.  
  2222.     const CVisioColor FAR & operator=(const CVisioColor FAR &other)
  2223.         {
  2224.         if ( &other != this )
  2225.             CopyIP(other.GetUnknown());
  2226.  
  2227.         return *this;
  2228.         }
  2229.  
  2230.     const CVisioColor FAR & operator=(const IVColor FAR * other)
  2231.         {
  2232.         if ( (LPUNKNOWN)other != GetUnknown() )
  2233.             CopyIP((LPUNKNOWN)other);
  2234.  
  2235.         return *this;
  2236.         }
  2237.  
  2238.     virtual ~CVisioColor() { }
  2239.  
  2240.     IVColor FAR * GetIP() const { return (IVColor FAR *) GetUnknown(); }
  2241.  
  2242.     operator IVColor FAR * () { return (IVColor FAR *) GetUnknown(); }
  2243.  
  2244. VW_PUBLIC:
  2245.     HRESULT Application(CVisioApplication FAR &rWrap);
  2246.     HRESULT Document(CVisioDocument FAR &rWrap);
  2247.     HRESULT Index(short FAR *lpRet);
  2248.     HRESULT getRed(short FAR *lpRet);
  2249.     HRESULT putRed(VW_CONST short param01);
  2250.     HRESULT getGreen(short FAR *lpRet);
  2251.     HRESULT putGreen(VW_CONST short param01);
  2252.     HRESULT getBlue(short FAR *lpRet);
  2253.     HRESULT putBlue(VW_CONST short param01);
  2254.     HRESULT getFlags(short FAR *lpRet);
  2255.     HRESULT putFlags(VW_CONST short param01);
  2256.     HRESULT getPaletteEntry(long FAR *lpRet);
  2257.     HRESULT putPaletteEntry(VW_CONST long param01);
  2258.     HRESULT ObjectType(short FAR *lpRet);
  2259.     HRESULT Stat(short FAR *lpRet);
  2260. };
  2261.  
  2262.  
  2263. //  ***************************************************************************
  2264. //  Declaration of class CVisioColors
  2265.  
  2266. class FAR CVisioColors : public CVisioUnknown
  2267. {
  2268. VW_PUBLIC:
  2269.     CVisioColors()
  2270.         : CVisioUnknown() { }
  2271.  
  2272.     CVisioColors(const CVisioColors& other)
  2273.         : CVisioUnknown(other) { }
  2274.  
  2275.     CVisioColors(const IVColors FAR * other, BOOL bAssumeResponsibility= FALSE)
  2276.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2277.  
  2278.     const CVisioColors FAR & operator=(const CVisioColors FAR &other)
  2279.         {
  2280.         if ( &other != this )
  2281.             CopyIP(other.GetUnknown());
  2282.  
  2283.         return *this;
  2284.         }
  2285.  
  2286.     const CVisioColors FAR & operator=(const IVColors FAR * other)
  2287.         {
  2288.         if ( (LPUNKNOWN)other != GetUnknown() )
  2289.             CopyIP((LPUNKNOWN)other);
  2290.  
  2291.         return *this;
  2292.         }
  2293.  
  2294.     virtual ~CVisioColors() { }
  2295.  
  2296.     IVColors FAR * GetIP() const { return (IVColors FAR *) GetUnknown(); }
  2297.  
  2298.     operator IVColors FAR * () { return (IVColors FAR *) GetUnknown(); }
  2299.  
  2300. VW_PUBLIC:
  2301.     HRESULT Application(CVisioApplication FAR &rWrap);
  2302.     HRESULT Document(CVisioDocument FAR &rWrap);
  2303.     HRESULT Count(short FAR *lpRet);
  2304.     HRESULT Item(short Index, CVisioColor FAR &rWrap);
  2305.     HRESULT ObjectType(short FAR *lpRet);
  2306.     HRESULT Stat(short FAR *lpRet);
  2307. };
  2308.  
  2309.  
  2310. //  ***************************************************************************
  2311. //  Declaration of class CVisioAddon
  2312.  
  2313. class FAR CVisioAddon : public CVisioUnknown
  2314. {
  2315. VW_PUBLIC:
  2316.     CVisioAddon()
  2317.         : CVisioUnknown() { }
  2318.  
  2319.     CVisioAddon(const CVisioAddon& other)
  2320.         : CVisioUnknown(other) { }
  2321.  
  2322.     CVisioAddon(const IVAddon FAR * other, BOOL bAssumeResponsibility= FALSE)
  2323.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2324.  
  2325.     const CVisioAddon FAR & operator=(const CVisioAddon FAR &other)
  2326.         {
  2327.         if ( &other != this )
  2328.             CopyIP(other.GetUnknown());
  2329.  
  2330.         return *this;
  2331.         }
  2332.  
  2333.     const CVisioAddon FAR & operator=(const IVAddon FAR * other)
  2334.         {
  2335.         if ( (LPUNKNOWN)other != GetUnknown() )
  2336.             CopyIP((LPUNKNOWN)other);
  2337.  
  2338.         return *this;
  2339.         }
  2340.  
  2341.     virtual ~CVisioAddon() { }
  2342.  
  2343.     IVAddon FAR * GetIP() const { return (IVAddon FAR *) GetUnknown(); }
  2344.  
  2345.     operator IVAddon FAR * () { return (IVAddon FAR *) GetUnknown(); }
  2346.  
  2347. VW_PUBLIC:
  2348.     HRESULT Application(CVisioApplication FAR &rWrap);
  2349.     HRESULT ObjectType(short FAR *lpRet);
  2350.     HRESULT Name(BSTR_HELPER_CLASS FAR &rWrap);
  2351.     HRESULT Index(short FAR *lpRet);
  2352.     HRESULT Enabled(short FAR *lpRet);
  2353.     HRESULT Run(BSTR_HELPER_CLASS FAR &ArgString);
  2354. };
  2355.  
  2356.  
  2357. //  ***************************************************************************
  2358. //  Declaration of class CVisioAddons
  2359.  
  2360. class FAR CVisioAddons : public CVisioUnknown
  2361. {
  2362. VW_PUBLIC:
  2363.     CVisioAddons()
  2364.         : CVisioUnknown() { }
  2365.  
  2366.     CVisioAddons(const CVisioAddons& other)
  2367.         : CVisioUnknown(other) { }
  2368.  
  2369.     CVisioAddons(const IVAddons FAR * other, BOOL bAssumeResponsibility= FALSE)
  2370.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2371.  
  2372.     const CVisioAddons FAR & operator=(const CVisioAddons FAR &other)
  2373.         {
  2374.         if ( &other != this )
  2375.             CopyIP(other.GetUnknown());
  2376.  
  2377.         return *this;
  2378.         }
  2379.  
  2380.     const CVisioAddons FAR & operator=(const IVAddons FAR * other)
  2381.         {
  2382.         if ( (LPUNKNOWN)other != GetUnknown() )
  2383.             CopyIP((LPUNKNOWN)other);
  2384.  
  2385.         return *this;
  2386.         }
  2387.  
  2388.     virtual ~CVisioAddons() { }
  2389.  
  2390.     IVAddons FAR * GetIP() const { return (IVAddons FAR *) GetUnknown(); }
  2391.  
  2392.     operator IVAddons FAR * () { return (IVAddons FAR *) GetUnknown(); }
  2393.  
  2394. VW_PUBLIC:
  2395.     HRESULT Application(CVisioApplication FAR &rWrap);
  2396.     HRESULT ObjectType(short FAR *lpRet);
  2397.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioAddon FAR &rWrap);
  2398.     HRESULT Count(short FAR *lpRet);
  2399.     HRESULT Add(BSTR_HELPER_CLASS FAR &FileName, CVisioAddon FAR &rWrap);
  2400.     HRESULT GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  2401. };
  2402.  
  2403.  
  2404. //  ***************************************************************************
  2405. //  Declaration of class CVisioEvent
  2406.  
  2407. class FAR CVisioEvent : public CVisioUnknown
  2408. {
  2409. VW_PUBLIC:
  2410.     CVisioEvent()
  2411.         : CVisioUnknown() { }
  2412.  
  2413.     CVisioEvent(const CVisioEvent& other)
  2414.         : CVisioUnknown(other) { }
  2415.  
  2416.     CVisioEvent(const IVEvent FAR * other, BOOL bAssumeResponsibility= FALSE)
  2417.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2418.  
  2419.     const CVisioEvent FAR & operator=(const CVisioEvent FAR &other)
  2420.         {
  2421.         if ( &other != this )
  2422.             CopyIP(other.GetUnknown());
  2423.  
  2424.         return *this;
  2425.         }
  2426.  
  2427.     const CVisioEvent FAR & operator=(const IVEvent FAR * other)
  2428.         {
  2429.         if ( (LPUNKNOWN)other != GetUnknown() )
  2430.             CopyIP((LPUNKNOWN)other);
  2431.  
  2432.         return *this;
  2433.         }
  2434.  
  2435.     virtual ~CVisioEvent() { }
  2436.  
  2437.     IVEvent FAR * GetIP() const { return (IVEvent FAR *) GetUnknown(); }
  2438.  
  2439.     operator IVEvent FAR * () { return (IVEvent FAR *) GetUnknown(); }
  2440.  
  2441. VW_PUBLIC:
  2442.     HRESULT Application(CVisioApplication FAR &rWrap);
  2443.     HRESULT EventList(CVisioEventList FAR &rWrap);
  2444.     HRESULT Index(short FAR *lpRet);
  2445.     HRESULT getEvent(short FAR *lpRet);
  2446.     HRESULT putEvent(VW_CONST short param01);
  2447.     HRESULT getAction(short FAR *lpRet);
  2448.     HRESULT putAction(VW_CONST short param01);
  2449.     HRESULT getTarget(BSTR_HELPER_CLASS FAR &rWrap);
  2450.     HRESULT putTarget(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2451.     HRESULT getTargetArgs(BSTR_HELPER_CLASS FAR &rWrap);
  2452.     HRESULT putTargetArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2453.     HRESULT Trigger(BSTR_HELPER_CLASS FAR &ContextString);
  2454.     HRESULT Delete();
  2455.     HRESULT ObjectType(short FAR *lpRet);
  2456.     HRESULT ID(long FAR *lpRet);
  2457.     HRESULT getEnabled(short FAR *lpRet);
  2458.     HRESULT putEnabled(VW_CONST short param01);
  2459.     HRESULT Persistable(short FAR *lpRet);
  2460.     HRESULT getPersistent(short FAR *lpRet);
  2461.     HRESULT putPersistent(VW_CONST short param01);
  2462. };
  2463.  
  2464.  
  2465. //  ***************************************************************************
  2466. //  Declaration of class CVisioEventList
  2467.  
  2468. class FAR CVisioEventList : public CVisioUnknown
  2469. {
  2470. VW_PUBLIC:
  2471.     CVisioEventList()
  2472.         : CVisioUnknown() { }
  2473.  
  2474.     CVisioEventList(const CVisioEventList& other)
  2475.         : CVisioUnknown(other) { }
  2476.  
  2477.     CVisioEventList(const IVEventList FAR * other, BOOL bAssumeResponsibility= FALSE)
  2478.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2479.  
  2480.     const CVisioEventList FAR & operator=(const CVisioEventList FAR &other)
  2481.         {
  2482.         if ( &other != this )
  2483.             CopyIP(other.GetUnknown());
  2484.  
  2485.         return *this;
  2486.         }
  2487.  
  2488.     const CVisioEventList FAR & operator=(const IVEventList FAR * other)
  2489.         {
  2490.         if ( (LPUNKNOWN)other != GetUnknown() )
  2491.             CopyIP((LPUNKNOWN)other);
  2492.  
  2493.         return *this;
  2494.         }
  2495.  
  2496.     virtual ~CVisioEventList() { }
  2497.  
  2498.     IVEventList FAR * GetIP() const { return (IVEventList FAR *) GetUnknown(); }
  2499.  
  2500.     operator IVEventList FAR * () { return (IVEventList FAR *) GetUnknown(); }
  2501.  
  2502. VW_PUBLIC:
  2503.     HRESULT Application(CVisioApplication FAR &rWrap);
  2504.     HRESULT ObjectType(short FAR *lpRet);
  2505.     HRESULT Item(short Index, CVisioEvent FAR &rWrap);
  2506.     HRESULT Count(short FAR *lpRet);
  2507.     HRESULT Add(short EventCode, short Action, BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &TargetArgs, CVisioEvent FAR &rWrap);
  2508.     HRESULT AddAdvise(short EventCode, VARIANT_HELPER_CLASS FAR &SinkIUnkOrIDisp, BSTR_HELPER_CLASS FAR &IIDSink, BSTR_HELPER_CLASS FAR &TargetArgs, CVisioEvent FAR &rWrap);
  2509.     HRESULT ItemFromID(long ObjectID, CVisioEvent FAR &rWrap);
  2510. };
  2511.  
  2512.  
  2513. //  ***************************************************************************
  2514. //  Declaration of class CVisioGlobal
  2515.  
  2516. class FAR CVisioGlobal : public CVisioUnknown
  2517. {
  2518. VW_PUBLIC:
  2519.     CVisioGlobal()
  2520.         : CVisioUnknown() { }
  2521.  
  2522.     CVisioGlobal(const CVisioGlobal& other)
  2523.         : CVisioUnknown(other) { }
  2524.  
  2525.     CVisioGlobal(const IVGlobal FAR * other, BOOL bAssumeResponsibility= FALSE)
  2526.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2527.  
  2528.     const CVisioGlobal FAR & operator=(const CVisioGlobal FAR &other)
  2529.         {
  2530.         if ( &other != this )
  2531.             CopyIP(other.GetUnknown());
  2532.  
  2533.         return *this;
  2534.         }
  2535.  
  2536.     const CVisioGlobal FAR & operator=(const IVGlobal FAR * other)
  2537.         {
  2538.         if ( (LPUNKNOWN)other != GetUnknown() )
  2539.             CopyIP((LPUNKNOWN)other);
  2540.  
  2541.         return *this;
  2542.         }
  2543.  
  2544.     virtual ~CVisioGlobal() { }
  2545.  
  2546.     IVGlobal FAR * GetIP() const { return (IVGlobal FAR *) GetUnknown(); }
  2547.  
  2548.     operator IVGlobal FAR * () { return (IVGlobal FAR *) GetUnknown(); }
  2549.  
  2550. VW_PUBLIC:
  2551.     HRESULT Application(CVisioApplication FAR &rWrap);
  2552.     HRESULT ActiveDocument(CVisioDocument FAR &rWrap);
  2553.     HRESULT ActivePage(CVisioPage FAR &rWrap);
  2554.     HRESULT ActiveWindow(CVisioWindow FAR &rWrap);
  2555.     HRESULT Documents(CVisioDocuments FAR &rWrap);
  2556.     HRESULT Windows(CVisioWindows FAR &rWrap);
  2557.     HRESULT Addons(CVisioAddons FAR &rWrap);
  2558.     HRESULT Vbe(IDispatch FAR *FAR *lpRet);
  2559. };
  2560.  
  2561.  
  2562. //  ***************************************************************************
  2563. //  Declaration of class CVisioEDocument
  2564.  
  2565. class FAR CVisioEDocument : public CVisioUnknown
  2566. {
  2567. VW_PUBLIC:
  2568.     CVisioEDocument()
  2569.         : CVisioUnknown() { }
  2570.  
  2571.     CVisioEDocument(const CVisioEDocument& other)
  2572.         : CVisioUnknown(other) { }
  2573.  
  2574.     CVisioEDocument(const EDocument FAR * other, BOOL bAssumeResponsibility= FALSE)
  2575.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2576.  
  2577.     const CVisioEDocument FAR & operator=(const CVisioEDocument FAR &other)
  2578.         {
  2579.         if ( &other != this )
  2580.             CopyIP(other.GetUnknown());
  2581.  
  2582.         return *this;
  2583.         }
  2584.  
  2585.     const CVisioEDocument FAR & operator=(const EDocument FAR * other)
  2586.         {
  2587.         if ( (LPUNKNOWN)other != GetUnknown() )
  2588.             CopyIP((LPUNKNOWN)other);
  2589.  
  2590.         return *this;
  2591.         }
  2592.  
  2593.     virtual ~CVisioEDocument() { }
  2594.  
  2595.     EDocument FAR * GetIP() const { return (EDocument FAR *) GetUnknown(); }
  2596.  
  2597.     operator EDocument FAR * () { return (EDocument FAR *) GetUnknown(); }
  2598.  
  2599. VW_PUBLIC:
  2600. #if 0
  2601.     //  This method list provided for information only...
  2602.     HRESULT DocumentOpened(CVisioDocument FAR &doc);
  2603.     HRESULT DocumentCreated(CVisioDocument FAR &doc);
  2604.     HRESULT DocumentSaved(CVisioDocument FAR &doc);
  2605.     HRESULT DocumentSavedAs(CVisioDocument FAR &doc);
  2606.     HRESULT DocumentChanged(CVisioDocument FAR &doc);
  2607.     HRESULT BeforeDocumentClose(CVisioDocument FAR &doc);
  2608.     HRESULT StyleAdded(CVisioStyle FAR &Style);
  2609.     HRESULT StyleChanged(CVisioStyle FAR &Style);
  2610.     HRESULT BeforeStyleDelete(CVisioStyle FAR &Style);
  2611.     HRESULT MasterAdded(CVisioMaster FAR &Master);
  2612.     HRESULT MasterChanged(CVisioMaster FAR &Master);
  2613.     HRESULT BeforeMasterDelete(CVisioMaster FAR &Master);
  2614.     HRESULT PageAdded(CVisioPage FAR &Page);
  2615.     HRESULT PageChanged(CVisioPage FAR &Page);
  2616.     HRESULT BeforePageDelete(CVisioPage FAR &Page);
  2617.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  2618.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2619.     HRESULT RunModeEntered(CVisioDocument FAR &doc);
  2620.     HRESULT DesignModeEntered(CVisioDocument FAR &doc);
  2621.     HRESULT BeforeDocumentSave(CVisioDocument FAR &doc);
  2622.     HRESULT BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2623. #endif  //  0
  2624. };
  2625.  
  2626.  
  2627. //  ***************************************************************************
  2628. //  Declaration of class CVisioEApplication
  2629.  
  2630. class FAR CVisioEApplication : public CVisioUnknown
  2631. {
  2632. VW_PUBLIC:
  2633.     CVisioEApplication()
  2634.         : CVisioUnknown() { }
  2635.  
  2636.     CVisioEApplication(const CVisioEApplication& other)
  2637.         : CVisioUnknown(other) { }
  2638.  
  2639.     CVisioEApplication(const EApplication FAR * other, BOOL bAssumeResponsibility= FALSE)
  2640.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2641.  
  2642.     const CVisioEApplication FAR & operator=(const CVisioEApplication FAR &other)
  2643.         {
  2644.         if ( &other != this )
  2645.             CopyIP(other.GetUnknown());
  2646.  
  2647.         return *this;
  2648.         }
  2649.  
  2650.     const CVisioEApplication FAR & operator=(const EApplication FAR * other)
  2651.         {
  2652.         if ( (LPUNKNOWN)other != GetUnknown() )
  2653.             CopyIP((LPUNKNOWN)other);
  2654.  
  2655.         return *this;
  2656.         }
  2657.  
  2658.     virtual ~CVisioEApplication() { }
  2659.  
  2660.     EApplication FAR * GetIP() const { return (EApplication FAR *) GetUnknown(); }
  2661.  
  2662.     operator EApplication FAR * () { return (EApplication FAR *) GetUnknown(); }
  2663.  
  2664. VW_PUBLIC:
  2665. #if 0
  2666.     //  This method list provided for information only...
  2667.     HRESULT AppActivated(CVisioApplication FAR &app);
  2668.     HRESULT AppDeactivated(CVisioApplication FAR &app);
  2669.     HRESULT AppObjActivated(CVisioApplication FAR &app);
  2670.     HRESULT AppObjDeactivated(CVisioApplication FAR &app);
  2671.     HRESULT BeforeQuit(CVisioApplication FAR &app);
  2672.     HRESULT BeforeModal(CVisioApplication FAR &app);
  2673.     HRESULT AfterModal(CVisioApplication FAR &app);
  2674.     HRESULT WindowOpened(CVisioWindow FAR &Window);
  2675.     HRESULT SelectionChanged(CVisioWindow FAR &Window);
  2676.     HRESULT BeforeWindowClosed(CVisioWindow FAR &Window);
  2677.     HRESULT WindowActivated(CVisioWindow FAR &Window);
  2678.     HRESULT BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2679.     HRESULT BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2680.     HRESULT WindowTurnedToPage(CVisioWindow FAR &Window);
  2681.     HRESULT DocumentOpened(CVisioDocument FAR &doc);
  2682.     HRESULT DocumentCreated(CVisioDocument FAR &doc);
  2683.     HRESULT DocumentSaved(CVisioDocument FAR &doc);
  2684.     HRESULT DocumentSavedAs(CVisioDocument FAR &doc);
  2685.     HRESULT DocumentChanged(CVisioDocument FAR &doc);
  2686.     HRESULT BeforeDocumentClose(CVisioDocument FAR &doc);
  2687.     HRESULT StyleAdded(CVisioStyle FAR &Style);
  2688.     HRESULT StyleChanged(CVisioStyle FAR &Style);
  2689.     HRESULT BeforeStyleDelete(CVisioStyle FAR &Style);
  2690.     HRESULT MasterAdded(CVisioMaster FAR &Master);
  2691.     HRESULT MasterChanged(CVisioMaster FAR &Master);
  2692.     HRESULT BeforeMasterDelete(CVisioMaster FAR &Master);
  2693.     HRESULT PageAdded(CVisioPage FAR &Page);
  2694.     HRESULT PageChanged(CVisioPage FAR &Page);
  2695.     HRESULT BeforePageDelete(CVisioPage FAR &Page);
  2696.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  2697.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2698.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  2699.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  2700.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  2701.     HRESULT TextChanged(CVisioShape FAR &Shape);
  2702.     HRESULT CellChanged(CVisioCell FAR &Cell);
  2703.     HRESULT MarkerEvent(CVisioApplication FAR &app, long SequenceNum, BSTR_HELPER_CLASS FAR &ContextString);
  2704.     HRESULT NoEventsPending(CVisioApplication FAR &app);
  2705.     HRESULT VisioIsIdle(CVisioApplication FAR &app);
  2706.     HRESULT MustFlushScopeBeginning(CVisioApplication FAR &app);
  2707.     HRESULT MustFlushScopeEnded(CVisioApplication FAR &app);
  2708.     HRESULT RunModeEntered(CVisioDocument FAR &doc);
  2709.     HRESULT DesignModeEntered(CVisioDocument FAR &doc);
  2710.     HRESULT BeforeDocumentSave(CVisioDocument FAR &doc);
  2711.     HRESULT BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2712.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  2713.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  2714.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  2715. #endif  //  0
  2716. };
  2717.  
  2718.  
  2719. //  ***************************************************************************
  2720. //  Declaration of class CVisioEWindows
  2721.  
  2722. class FAR CVisioEWindows : public CVisioUnknown
  2723. {
  2724. VW_PUBLIC:
  2725.     CVisioEWindows()
  2726.         : CVisioUnknown() { }
  2727.  
  2728.     CVisioEWindows(const CVisioEWindows& other)
  2729.         : CVisioUnknown(other) { }
  2730.  
  2731.     CVisioEWindows(const EWindows FAR * other, BOOL bAssumeResponsibility= FALSE)
  2732.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2733.  
  2734.     const CVisioEWindows FAR & operator=(const CVisioEWindows FAR &other)
  2735.         {
  2736.         if ( &other != this )
  2737.             CopyIP(other.GetUnknown());
  2738.  
  2739.         return *this;
  2740.         }
  2741.  
  2742.     const CVisioEWindows FAR & operator=(const EWindows FAR * other)
  2743.         {
  2744.         if ( (LPUNKNOWN)other != GetUnknown() )
  2745.             CopyIP((LPUNKNOWN)other);
  2746.  
  2747.         return *this;
  2748.         }
  2749.  
  2750.     virtual ~CVisioEWindows() { }
  2751.  
  2752.     EWindows FAR * GetIP() const { return (EWindows FAR *) GetUnknown(); }
  2753.  
  2754.     operator EWindows FAR * () { return (EWindows FAR *) GetUnknown(); }
  2755.  
  2756. VW_PUBLIC:
  2757. #if 0
  2758.     //  This method list provided for information only...
  2759.     HRESULT WindowOpened(CVisioWindow FAR &Window);
  2760.     HRESULT SelectionChanged(CVisioWindow FAR &Window);
  2761.     HRESULT BeforeWindowClosed(CVisioWindow FAR &Window);
  2762.     HRESULT WindowActivated(CVisioWindow FAR &Window);
  2763.     HRESULT BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2764.     HRESULT BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2765.     HRESULT WindowTurnedToPage(CVisioWindow FAR &Window);
  2766. #endif  //  0
  2767. };
  2768.  
  2769.  
  2770. //  ***************************************************************************
  2771. //  Declaration of class CVisioEWindow
  2772.  
  2773. class FAR CVisioEWindow : public CVisioUnknown
  2774. {
  2775. VW_PUBLIC:
  2776.     CVisioEWindow()
  2777.         : CVisioUnknown() { }
  2778.  
  2779.     CVisioEWindow(const CVisioEWindow& other)
  2780.         : CVisioUnknown(other) { }
  2781.  
  2782.     CVisioEWindow(const EWindow FAR * other, BOOL bAssumeResponsibility= FALSE)
  2783.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2784.  
  2785.     const CVisioEWindow FAR & operator=(const CVisioEWindow FAR &other)
  2786.         {
  2787.         if ( &other != this )
  2788.             CopyIP(other.GetUnknown());
  2789.  
  2790.         return *this;
  2791.         }
  2792.  
  2793.     const CVisioEWindow FAR & operator=(const EWindow FAR * other)
  2794.         {
  2795.         if ( (LPUNKNOWN)other != GetUnknown() )
  2796.             CopyIP((LPUNKNOWN)other);
  2797.  
  2798.         return *this;
  2799.         }
  2800.  
  2801.     virtual ~CVisioEWindow() { }
  2802.  
  2803.     EWindow FAR * GetIP() const { return (EWindow FAR *) GetUnknown(); }
  2804.  
  2805.     operator EWindow FAR * () { return (EWindow FAR *) GetUnknown(); }
  2806.  
  2807. VW_PUBLIC:
  2808. #if 0
  2809.     //  This method list provided for information only...
  2810.     HRESULT SelectionChanged(CVisioWindow FAR &Window);
  2811.     HRESULT BeforeWindowClosed(CVisioWindow FAR &Window);
  2812.     HRESULT WindowActivated(CVisioWindow FAR &Window);
  2813.     HRESULT BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2814.     HRESULT BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2815.     HRESULT WindowTurnedToPage(CVisioWindow FAR &Window);
  2816. #endif  //  0
  2817. };
  2818.  
  2819.  
  2820. //  ***************************************************************************
  2821. //  Declaration of class CVisioEDocuments
  2822.  
  2823. class FAR CVisioEDocuments : public CVisioUnknown
  2824. {
  2825. VW_PUBLIC:
  2826.     CVisioEDocuments()
  2827.         : CVisioUnknown() { }
  2828.  
  2829.     CVisioEDocuments(const CVisioEDocuments& other)
  2830.         : CVisioUnknown(other) { }
  2831.  
  2832.     CVisioEDocuments(const EDocuments FAR * other, BOOL bAssumeResponsibility= FALSE)
  2833.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2834.  
  2835.     const CVisioEDocuments FAR & operator=(const CVisioEDocuments FAR &other)
  2836.         {
  2837.         if ( &other != this )
  2838.             CopyIP(other.GetUnknown());
  2839.  
  2840.         return *this;
  2841.         }
  2842.  
  2843.     const CVisioEDocuments FAR & operator=(const EDocuments FAR * other)
  2844.         {
  2845.         if ( (LPUNKNOWN)other != GetUnknown() )
  2846.             CopyIP((LPUNKNOWN)other);
  2847.  
  2848.         return *this;
  2849.         }
  2850.  
  2851.     virtual ~CVisioEDocuments() { }
  2852.  
  2853.     EDocuments FAR * GetIP() const { return (EDocuments FAR *) GetUnknown(); }
  2854.  
  2855.     operator EDocuments FAR * () { return (EDocuments FAR *) GetUnknown(); }
  2856.  
  2857. VW_PUBLIC:
  2858. #if 0
  2859.     //  This method list provided for information only...
  2860.     HRESULT DocumentOpened(CVisioDocument FAR &doc);
  2861.     HRESULT DocumentCreated(CVisioDocument FAR &doc);
  2862.     HRESULT DocumentSaved(CVisioDocument FAR &doc);
  2863.     HRESULT DocumentSavedAs(CVisioDocument FAR &doc);
  2864.     HRESULT DocumentChanged(CVisioDocument FAR &doc);
  2865.     HRESULT BeforeDocumentClose(CVisioDocument FAR &doc);
  2866.     HRESULT StyleAdded(CVisioStyle FAR &Style);
  2867.     HRESULT StyleChanged(CVisioStyle FAR &Style);
  2868.     HRESULT BeforeStyleDelete(CVisioStyle FAR &Style);
  2869.     HRESULT MasterAdded(CVisioMaster FAR &Master);
  2870.     HRESULT MasterChanged(CVisioMaster FAR &Master);
  2871.     HRESULT BeforeMasterDelete(CVisioMaster FAR &Master);
  2872.     HRESULT PageAdded(CVisioPage FAR &Page);
  2873.     HRESULT PageChanged(CVisioPage FAR &Page);
  2874.     HRESULT BeforePageDelete(CVisioPage FAR &Page);
  2875.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  2876.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2877.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  2878.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  2879.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  2880.     HRESULT TextChanged(CVisioShape FAR &Shape);
  2881.     HRESULT CellChanged(CVisioCell FAR &Cell);
  2882.     HRESULT RunModeEntered(CVisioDocument FAR &doc);
  2883.     HRESULT DesignModeEntered(CVisioDocument FAR &doc);
  2884.     HRESULT BeforeDocumentSave(CVisioDocument FAR &doc);
  2885.     HRESULT BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2886.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  2887.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  2888.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  2889. #endif  //  0
  2890. };
  2891.  
  2892.  
  2893. //  ***************************************************************************
  2894. //  Declaration of class CVisioEStyles
  2895.  
  2896. class FAR CVisioEStyles : public CVisioUnknown
  2897. {
  2898. VW_PUBLIC:
  2899.     CVisioEStyles()
  2900.         : CVisioUnknown() { }
  2901.  
  2902.     CVisioEStyles(const CVisioEStyles& other)
  2903.         : CVisioUnknown(other) { }
  2904.  
  2905.     CVisioEStyles(const EStyles FAR * other, BOOL bAssumeResponsibility= FALSE)
  2906.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2907.  
  2908.     const CVisioEStyles FAR & operator=(const CVisioEStyles FAR &other)
  2909.         {
  2910.         if ( &other != this )
  2911.             CopyIP(other.GetUnknown());
  2912.  
  2913.         return *this;
  2914.         }
  2915.  
  2916.     const CVisioEStyles FAR & operator=(const EStyles FAR * other)
  2917.         {
  2918.         if ( (LPUNKNOWN)other != GetUnknown() )
  2919.             CopyIP((LPUNKNOWN)other);
  2920.  
  2921.         return *this;
  2922.         }
  2923.  
  2924.     virtual ~CVisioEStyles() { }
  2925.  
  2926.     EStyles FAR * GetIP() const { return (EStyles FAR *) GetUnknown(); }
  2927.  
  2928.     operator EStyles FAR * () { return (EStyles FAR *) GetUnknown(); }
  2929.  
  2930. VW_PUBLIC:
  2931. #if 0
  2932.     //  This method list provided for information only...
  2933.     HRESULT StyleAdded(CVisioStyle FAR &Style);
  2934.     HRESULT StyleChanged(CVisioStyle FAR &Style);
  2935.     HRESULT BeforeStyleDelete(CVisioStyle FAR &Style);
  2936. #endif  //  0
  2937. };
  2938.  
  2939.  
  2940. //  ***************************************************************************
  2941. //  Declaration of class CVisioEStyle
  2942.  
  2943. class FAR CVisioEStyle : public CVisioUnknown
  2944. {
  2945. VW_PUBLIC:
  2946.     CVisioEStyle()
  2947.         : CVisioUnknown() { }
  2948.  
  2949.     CVisioEStyle(const CVisioEStyle& other)
  2950.         : CVisioUnknown(other) { }
  2951.  
  2952.     CVisioEStyle(const EStyle FAR * other, BOOL bAssumeResponsibility= FALSE)
  2953.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2954.  
  2955.     const CVisioEStyle FAR & operator=(const CVisioEStyle FAR &other)
  2956.         {
  2957.         if ( &other != this )
  2958.             CopyIP(other.GetUnknown());
  2959.  
  2960.         return *this;
  2961.         }
  2962.  
  2963.     const CVisioEStyle FAR & operator=(const EStyle FAR * other)
  2964.         {
  2965.         if ( (LPUNKNOWN)other != GetUnknown() )
  2966.             CopyIP((LPUNKNOWN)other);
  2967.  
  2968.         return *this;
  2969.         }
  2970.  
  2971.     virtual ~CVisioEStyle() { }
  2972.  
  2973.     EStyle FAR * GetIP() const { return (EStyle FAR *) GetUnknown(); }
  2974.  
  2975.     operator EStyle FAR * () { return (EStyle FAR *) GetUnknown(); }
  2976.  
  2977. VW_PUBLIC:
  2978. #if 0
  2979.     //  This method list provided for information only...
  2980.     HRESULT StyleChanged(CVisioStyle FAR &Style);
  2981.     HRESULT BeforeStyleDelete(CVisioStyle FAR &Style);
  2982. #endif  //  0
  2983. };
  2984.  
  2985.  
  2986. //  ***************************************************************************
  2987. //  Declaration of class CVisioEMasters
  2988.  
  2989. class FAR CVisioEMasters : public CVisioUnknown
  2990. {
  2991. VW_PUBLIC:
  2992.     CVisioEMasters()
  2993.         : CVisioUnknown() { }
  2994.  
  2995.     CVisioEMasters(const CVisioEMasters& other)
  2996.         : CVisioUnknown(other) { }
  2997.  
  2998.     CVisioEMasters(const EMasters FAR * other, BOOL bAssumeResponsibility= FALSE)
  2999.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3000.  
  3001.     const CVisioEMasters FAR & operator=(const CVisioEMasters FAR &other)
  3002.         {
  3003.         if ( &other != this )
  3004.             CopyIP(other.GetUnknown());
  3005.  
  3006.         return *this;
  3007.         }
  3008.  
  3009.     const CVisioEMasters FAR & operator=(const EMasters FAR * other)
  3010.         {
  3011.         if ( (LPUNKNOWN)other != GetUnknown() )
  3012.             CopyIP((LPUNKNOWN)other);
  3013.  
  3014.         return *this;
  3015.         }
  3016.  
  3017.     virtual ~CVisioEMasters() { }
  3018.  
  3019.     EMasters FAR * GetIP() const { return (EMasters FAR *) GetUnknown(); }
  3020.  
  3021.     operator EMasters FAR * () { return (EMasters FAR *) GetUnknown(); }
  3022.  
  3023. VW_PUBLIC:
  3024. #if 0
  3025.     //  This method list provided for information only...
  3026.     HRESULT MasterAdded(CVisioMaster FAR &Master);
  3027.     HRESULT MasterChanged(CVisioMaster FAR &Master);
  3028.     HRESULT BeforeMasterDelete(CVisioMaster FAR &Master);
  3029.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  3030.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3031.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  3032.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  3033.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  3034.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3035.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3036.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3037.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  3038.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  3039. #endif  //  0
  3040. };
  3041.  
  3042.  
  3043. //  ***************************************************************************
  3044. //  Declaration of class CVisioEMaster
  3045.  
  3046. class FAR CVisioEMaster : public CVisioUnknown
  3047. {
  3048. VW_PUBLIC:
  3049.     CVisioEMaster()
  3050.         : CVisioUnknown() { }
  3051.  
  3052.     CVisioEMaster(const CVisioEMaster& other)
  3053.         : CVisioUnknown(other) { }
  3054.  
  3055.     CVisioEMaster(const EMaster FAR * other, BOOL bAssumeResponsibility= FALSE)
  3056.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3057.  
  3058.     const CVisioEMaster FAR & operator=(const CVisioEMaster FAR &other)
  3059.         {
  3060.         if ( &other != this )
  3061.             CopyIP(other.GetUnknown());
  3062.  
  3063.         return *this;
  3064.         }
  3065.  
  3066.     const CVisioEMaster FAR & operator=(const EMaster FAR * other)
  3067.         {
  3068.         if ( (LPUNKNOWN)other != GetUnknown() )
  3069.             CopyIP((LPUNKNOWN)other);
  3070.  
  3071.         return *this;
  3072.         }
  3073.  
  3074.     virtual ~CVisioEMaster() { }
  3075.  
  3076.     EMaster FAR * GetIP() const { return (EMaster FAR *) GetUnknown(); }
  3077.  
  3078.     operator EMaster FAR * () { return (EMaster FAR *) GetUnknown(); }
  3079.  
  3080. VW_PUBLIC:
  3081. #if 0
  3082.     //  This method list provided for information only...
  3083.     HRESULT MasterChanged(CVisioMaster FAR &Master);
  3084.     HRESULT BeforeMasterDelete(CVisioMaster FAR &Master);
  3085.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  3086.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3087.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  3088.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  3089.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  3090.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3091.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3092.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3093.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  3094.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  3095. #endif  //  0
  3096. };
  3097.  
  3098.  
  3099. //  ***************************************************************************
  3100. //  Declaration of class CVisioEPages
  3101.  
  3102. class FAR CVisioEPages : public CVisioUnknown
  3103. {
  3104. VW_PUBLIC:
  3105.     CVisioEPages()
  3106.         : CVisioUnknown() { }
  3107.  
  3108.     CVisioEPages(const CVisioEPages& other)
  3109.         : CVisioUnknown(other) { }
  3110.  
  3111.     CVisioEPages(const EPages FAR * other, BOOL bAssumeResponsibility= FALSE)
  3112.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3113.  
  3114.     const CVisioEPages FAR & operator=(const CVisioEPages FAR &other)
  3115.         {
  3116.         if ( &other != this )
  3117.             CopyIP(other.GetUnknown());
  3118.  
  3119.         return *this;
  3120.         }
  3121.  
  3122.     const CVisioEPages FAR & operator=(const EPages FAR * other)
  3123.         {
  3124.         if ( (LPUNKNOWN)other != GetUnknown() )
  3125.             CopyIP((LPUNKNOWN)other);
  3126.  
  3127.         return *this;
  3128.         }
  3129.  
  3130.     virtual ~CVisioEPages() { }
  3131.  
  3132.     EPages FAR * GetIP() const { return (EPages FAR *) GetUnknown(); }
  3133.  
  3134.     operator EPages FAR * () { return (EPages FAR *) GetUnknown(); }
  3135.  
  3136. VW_PUBLIC:
  3137. #if 0
  3138.     //  This method list provided for information only...
  3139.     HRESULT PageAdded(CVisioPage FAR &Page);
  3140.     HRESULT PageChanged(CVisioPage FAR &Page);
  3141.     HRESULT BeforePageDelete(CVisioPage FAR &Page);
  3142.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  3143.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3144.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  3145.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  3146.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  3147.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3148.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3149.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3150.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  3151.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  3152. #endif  //  0
  3153. };
  3154.  
  3155.  
  3156. //  ***************************************************************************
  3157. //  Declaration of class CVisioEPage
  3158.  
  3159. class FAR CVisioEPage : public CVisioUnknown
  3160. {
  3161. VW_PUBLIC:
  3162.     CVisioEPage()
  3163.         : CVisioUnknown() { }
  3164.  
  3165.     CVisioEPage(const CVisioEPage& other)
  3166.         : CVisioUnknown(other) { }
  3167.  
  3168.     CVisioEPage(const EPage FAR * other, BOOL bAssumeResponsibility= FALSE)
  3169.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3170.  
  3171.     const CVisioEPage FAR & operator=(const CVisioEPage FAR &other)
  3172.         {
  3173.         if ( &other != this )
  3174.             CopyIP(other.GetUnknown());
  3175.  
  3176.         return *this;
  3177.         }
  3178.  
  3179.     const CVisioEPage FAR & operator=(const EPage FAR * other)
  3180.         {
  3181.         if ( (LPUNKNOWN)other != GetUnknown() )
  3182.             CopyIP((LPUNKNOWN)other);
  3183.  
  3184.         return *this;
  3185.         }
  3186.  
  3187.     virtual ~CVisioEPage() { }
  3188.  
  3189.     EPage FAR * GetIP() const { return (EPage FAR *) GetUnknown(); }
  3190.  
  3191.     operator EPage FAR * () { return (EPage FAR *) GetUnknown(); }
  3192.  
  3193. VW_PUBLIC:
  3194. #if 0
  3195.     //  This method list provided for information only...
  3196.     HRESULT PageChanged(CVisioPage FAR &Page);
  3197.     HRESULT BeforePageDelete(CVisioPage FAR &Page);
  3198.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  3199.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3200.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  3201.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  3202.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  3203.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3204.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3205.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3206.     HRESULT ConnectionsAdded(CVisioConnects FAR &Connects);
  3207.     HRESULT ConnectionsDeleted(CVisioConnects FAR &Connects);
  3208. #endif  //  0
  3209. };
  3210.  
  3211.  
  3212. //  ***************************************************************************
  3213. //  Declaration of class CVisioEShape
  3214.  
  3215. class FAR CVisioEShape : public CVisioUnknown
  3216. {
  3217. VW_PUBLIC:
  3218.     CVisioEShape()
  3219.         : CVisioUnknown() { }
  3220.  
  3221.     CVisioEShape(const CVisioEShape& other)
  3222.         : CVisioUnknown(other) { }
  3223.  
  3224.     CVisioEShape(const EShape FAR * other, BOOL bAssumeResponsibility= FALSE)
  3225.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3226.  
  3227.     const CVisioEShape FAR & operator=(const CVisioEShape FAR &other)
  3228.         {
  3229.         if ( &other != this )
  3230.             CopyIP(other.GetUnknown());
  3231.  
  3232.         return *this;
  3233.         }
  3234.  
  3235.     const CVisioEShape FAR & operator=(const EShape FAR * other)
  3236.         {
  3237.         if ( (LPUNKNOWN)other != GetUnknown() )
  3238.             CopyIP((LPUNKNOWN)other);
  3239.  
  3240.         return *this;
  3241.         }
  3242.  
  3243.     virtual ~CVisioEShape() { }
  3244.  
  3245.     EShape FAR * GetIP() const { return (EShape FAR *) GetUnknown(); }
  3246.  
  3247.     operator EShape FAR * () { return (EShape FAR *) GetUnknown(); }
  3248.  
  3249. VW_PUBLIC:
  3250. #if 0
  3251.     //  This method list provided for information only...
  3252.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3253.     HRESULT ShapeAdded(CVisioShape FAR &Shape);
  3254.     HRESULT BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3255.     HRESULT ShapeChanged(CVisioShape FAR &Shape);
  3256.     HRESULT SelectionAdded(CVisioSelection FAR &Selection);
  3257.     HRESULT BeforeShapeDelete(CVisioShape FAR &Shape);
  3258.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3259.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3260. #endif  //  0
  3261. };
  3262.  
  3263.  
  3264. //  ***************************************************************************
  3265. //  Declaration of class CVisioECharacters
  3266.  
  3267. class FAR CVisioECharacters : public CVisioUnknown
  3268. {
  3269. VW_PUBLIC:
  3270.     CVisioECharacters()
  3271.         : CVisioUnknown() { }
  3272.  
  3273.     CVisioECharacters(const CVisioECharacters& other)
  3274.         : CVisioUnknown(other) { }
  3275.  
  3276.     CVisioECharacters(const ECharacters FAR * other, BOOL bAssumeResponsibility= FALSE)
  3277.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3278.  
  3279.     const CVisioECharacters FAR & operator=(const CVisioECharacters FAR &other)
  3280.         {
  3281.         if ( &other != this )
  3282.             CopyIP(other.GetUnknown());
  3283.  
  3284.         return *this;
  3285.         }
  3286.  
  3287.     const CVisioECharacters FAR & operator=(const ECharacters FAR * other)
  3288.         {
  3289.         if ( (LPUNKNOWN)other != GetUnknown() )
  3290.             CopyIP((LPUNKNOWN)other);
  3291.  
  3292.         return *this;
  3293.         }
  3294.  
  3295.     virtual ~CVisioECharacters() { }
  3296.  
  3297.     ECharacters FAR * GetIP() const { return (ECharacters FAR *) GetUnknown(); }
  3298.  
  3299.     operator ECharacters FAR * () { return (ECharacters FAR *) GetUnknown(); }
  3300.  
  3301. VW_PUBLIC:
  3302. #if 0
  3303.     //  This method list provided for information only...
  3304.     HRESULT TextChanged(CVisioShape FAR &Shape);
  3305. #endif  //  0
  3306. };
  3307.  
  3308.  
  3309. //  ***************************************************************************
  3310. //  Declaration of class CVisioECell
  3311.  
  3312. class FAR CVisioECell : public CVisioUnknown
  3313. {
  3314. VW_PUBLIC:
  3315.     CVisioECell()
  3316.         : CVisioUnknown() { }
  3317.  
  3318.     CVisioECell(const CVisioECell& other)
  3319.         : CVisioUnknown(other) { }
  3320.  
  3321.     CVisioECell(const ECell FAR * other, BOOL bAssumeResponsibility= FALSE)
  3322.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3323.  
  3324.     const CVisioECell FAR & operator=(const CVisioECell FAR &other)
  3325.         {
  3326.         if ( &other != this )
  3327.             CopyIP(other.GetUnknown());
  3328.  
  3329.         return *this;
  3330.         }
  3331.  
  3332.     const CVisioECell FAR & operator=(const ECell FAR * other)
  3333.         {
  3334.         if ( (LPUNKNOWN)other != GetUnknown() )
  3335.             CopyIP((LPUNKNOWN)other);
  3336.  
  3337.         return *this;
  3338.         }
  3339.  
  3340.     virtual ~CVisioECell() { }
  3341.  
  3342.     ECell FAR * GetIP() const { return (ECell FAR *) GetUnknown(); }
  3343.  
  3344.     operator ECell FAR * () { return (ECell FAR *) GetUnknown(); }
  3345.  
  3346. VW_PUBLIC:
  3347. #if 0
  3348.     //  This method list provided for information only...
  3349.     HRESULT CellChanged(CVisioCell FAR &Cell);
  3350.     HRESULT FormulaChanged(CVisioCell FAR &Cell);
  3351. #endif  //  0
  3352. };
  3353.  
  3354.  
  3355. //  ***************************************************************************
  3356. //  Declaration of class CVisioMenuItem
  3357.  
  3358. class FAR CVisioMenuItem : public CVisioUnknown
  3359. {
  3360. VW_PUBLIC:
  3361.     CVisioMenuItem()
  3362.         : CVisioUnknown() { }
  3363.  
  3364.     CVisioMenuItem(const CVisioMenuItem& other)
  3365.         : CVisioUnknown(other) { }
  3366.  
  3367.     CVisioMenuItem(const IVMenuItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3368.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3369.  
  3370.     const CVisioMenuItem FAR & operator=(const CVisioMenuItem FAR &other)
  3371.         {
  3372.         if ( &other != this )
  3373.             CopyIP(other.GetUnknown());
  3374.  
  3375.         return *this;
  3376.         }
  3377.  
  3378.     const CVisioMenuItem FAR & operator=(const IVMenuItem FAR * other)
  3379.         {
  3380.         if ( (LPUNKNOWN)other != GetUnknown() )
  3381.             CopyIP((LPUNKNOWN)other);
  3382.  
  3383.         return *this;
  3384.         }
  3385.  
  3386.     virtual ~CVisioMenuItem() { }
  3387.  
  3388.     IVMenuItem FAR * GetIP() const { return (IVMenuItem FAR *) GetUnknown(); }
  3389.  
  3390.     operator IVMenuItem FAR * () { return (IVMenuItem FAR *) GetUnknown(); }
  3391.  
  3392. VW_PUBLIC:
  3393.     HRESULT Delete();
  3394.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  3395.     HRESULT Index(long FAR *lpRet);
  3396.     HRESULT MenuItems(CVisioMenuItems FAR &rWrap);
  3397.     HRESULT Parent(CVisioMenuItems FAR &rWrap);
  3398.     HRESULT putCmdNum(VW_CONST short param01);
  3399.     HRESULT getCmdNum(short FAR *lpRet);
  3400.     HRESULT putHelpContextID(VW_CONST short param01);
  3401.     HRESULT getHelpContextID(short FAR *lpRet);
  3402.     HRESULT IsSeparator(short FAR *lpRet);
  3403.     HRESULT IsHierarchical(short FAR *lpRet);
  3404.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3405.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  3406.     HRESULT putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3407.     HRESULT getActionText(BSTR_HELPER_CLASS FAR &rWrap);
  3408.     HRESULT putMiniHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3409.     HRESULT getMiniHelp(BSTR_HELPER_CLASS FAR &rWrap);
  3410.     HRESULT putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3411.     HRESULT getAddOnName(BSTR_HELPER_CLASS FAR &rWrap);
  3412.     HRESULT putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3413.     HRESULT getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap);
  3414.     HRESULT putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3415.     HRESULT getHelpFile(BSTR_HELPER_CLASS FAR &rWrap);
  3416. };
  3417.  
  3418.  
  3419. //  ***************************************************************************
  3420. //  Declaration of class CVisioIEnumVMenuItem
  3421.  
  3422. class FAR CVisioIEnumVMenuItem : public CVisioUnknown
  3423. {
  3424. VW_PUBLIC:
  3425.     CVisioIEnumVMenuItem()
  3426.         : CVisioUnknown() { }
  3427.  
  3428.     CVisioIEnumVMenuItem(const CVisioIEnumVMenuItem& other)
  3429.         : CVisioUnknown(other) { }
  3430.  
  3431.     CVisioIEnumVMenuItem(const IEnumVMenuItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3432.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3433.  
  3434.     const CVisioIEnumVMenuItem FAR & operator=(const CVisioIEnumVMenuItem FAR &other)
  3435.         {
  3436.         if ( &other != this )
  3437.             CopyIP(other.GetUnknown());
  3438.  
  3439.         return *this;
  3440.         }
  3441.  
  3442.     const CVisioIEnumVMenuItem FAR & operator=(const IEnumVMenuItem FAR * other)
  3443.         {
  3444.         if ( (LPUNKNOWN)other != GetUnknown() )
  3445.             CopyIP((LPUNKNOWN)other);
  3446.  
  3447.         return *this;
  3448.         }
  3449.  
  3450.     virtual ~CVisioIEnumVMenuItem() { }
  3451.  
  3452.     IEnumVMenuItem FAR * GetIP() const { return (IEnumVMenuItem FAR *) GetUnknown(); }
  3453.  
  3454.     operator IEnumVMenuItem FAR * () { return (IEnumVMenuItem FAR *) GetUnknown(); }
  3455.  
  3456. VW_PUBLIC:
  3457. #if 0
  3458.     //  This method list provided for information only...
  3459.     HRESULT Next(long celt, CVisioMenuItem FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  3460.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  3461.     HRESULT Reset(HRESULT FAR *lpRet);
  3462.     HRESULT Clone(IEnumVMenuItem FAR * FAR *ppenm, HRESULT FAR *lpRet);
  3463. #endif  //  0
  3464. };
  3465.  
  3466.  
  3467. //  ***************************************************************************
  3468. //  Declaration of class CVisioMenuItems
  3469.  
  3470. class FAR CVisioMenuItems : public CVisioUnknown
  3471. {
  3472. VW_PUBLIC:
  3473.     CVisioMenuItems()
  3474.         : CVisioUnknown() { }
  3475.  
  3476.     CVisioMenuItems(const CVisioMenuItems& other)
  3477.         : CVisioUnknown(other) { }
  3478.  
  3479.     CVisioMenuItems(const IVMenuItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  3480.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3481.  
  3482.     const CVisioMenuItems FAR & operator=(const CVisioMenuItems FAR &other)
  3483.         {
  3484.         if ( &other != this )
  3485.             CopyIP(other.GetUnknown());
  3486.  
  3487.         return *this;
  3488.         }
  3489.  
  3490.     const CVisioMenuItems FAR & operator=(const IVMenuItems FAR * other)
  3491.         {
  3492.         if ( (LPUNKNOWN)other != GetUnknown() )
  3493.             CopyIP((LPUNKNOWN)other);
  3494.  
  3495.         return *this;
  3496.         }
  3497.  
  3498.     virtual ~CVisioMenuItems() { }
  3499.  
  3500.     IVMenuItems FAR * GetIP() const { return (IVMenuItems FAR *) GetUnknown(); }
  3501.  
  3502.     operator IVMenuItems FAR * () { return (IVMenuItems FAR *) GetUnknown(); }
  3503.  
  3504. VW_PUBLIC:
  3505.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  3506.     HRESULT Item(long lIndex, CVisioMenuItem FAR &rWrap);
  3507.     HRESULT Add(CVisioMenuItem FAR &rWrap);
  3508.     HRESULT AddAt(long lIndex, CVisioMenuItem FAR &rWrap);
  3509.     HRESULT Count(long FAR *lpRet);
  3510.     HRESULT Parent(CVisioMenu FAR &rWrap);
  3511. };
  3512.  
  3513.  
  3514. //  ***************************************************************************
  3515. //  Declaration of class CVisioMenu
  3516.  
  3517. class FAR CVisioMenu : public CVisioUnknown
  3518. {
  3519. VW_PUBLIC:
  3520.     CVisioMenu()
  3521.         : CVisioUnknown() { }
  3522.  
  3523.     CVisioMenu(const CVisioMenu& other)
  3524.         : CVisioUnknown(other) { }
  3525.  
  3526.     CVisioMenu(const IVMenu FAR * other, BOOL bAssumeResponsibility= FALSE)
  3527.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3528.  
  3529.     const CVisioMenu FAR & operator=(const CVisioMenu FAR &other)
  3530.         {
  3531.         if ( &other != this )
  3532.             CopyIP(other.GetUnknown());
  3533.  
  3534.         return *this;
  3535.         }
  3536.  
  3537.     const CVisioMenu FAR & operator=(const IVMenu FAR * other)
  3538.         {
  3539.         if ( (LPUNKNOWN)other != GetUnknown() )
  3540.             CopyIP((LPUNKNOWN)other);
  3541.  
  3542.         return *this;
  3543.         }
  3544.  
  3545.     virtual ~CVisioMenu() { }
  3546.  
  3547.     IVMenu FAR * GetIP() const { return (IVMenu FAR *) GetUnknown(); }
  3548.  
  3549.     operator IVMenu FAR * () { return (IVMenu FAR *) GetUnknown(); }
  3550.  
  3551. VW_PUBLIC:
  3552.     HRESULT Delete();
  3553.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  3554.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3555.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  3556.     HRESULT Index(long FAR *lpRet);
  3557.     HRESULT putMDIWindowMenu(VW_CONST short param01);
  3558.     HRESULT getMDIWindowMenu(short FAR *lpRet);
  3559.     HRESULT MenuItems(CVisioMenuItems FAR &rWrap);
  3560.     HRESULT Parent(CVisioMenus FAR &rWrap);
  3561. };
  3562.  
  3563.  
  3564. //  ***************************************************************************
  3565. //  Declaration of class CVisioIEnumVMenu
  3566.  
  3567. class FAR CVisioIEnumVMenu : public CVisioUnknown
  3568. {
  3569. VW_PUBLIC:
  3570.     CVisioIEnumVMenu()
  3571.         : CVisioUnknown() { }
  3572.  
  3573.     CVisioIEnumVMenu(const CVisioIEnumVMenu& other)
  3574.         : CVisioUnknown(other) { }
  3575.  
  3576.     CVisioIEnumVMenu(const IEnumVMenu FAR * other, BOOL bAssumeResponsibility= FALSE)
  3577.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3578.  
  3579.     const CVisioIEnumVMenu FAR & operator=(const CVisioIEnumVMenu FAR &other)
  3580.         {
  3581.         if ( &other != this )
  3582.             CopyIP(other.GetUnknown());
  3583.  
  3584.         return *this;
  3585.         }
  3586.  
  3587.     const CVisioIEnumVMenu FAR & operator=(const IEnumVMenu FAR * other)
  3588.         {
  3589.         if ( (LPUNKNOWN)other != GetUnknown() )
  3590.             CopyIP((LPUNKNOWN)other);
  3591.  
  3592.         return *this;
  3593.         }
  3594.  
  3595.     virtual ~CVisioIEnumVMenu() { }
  3596.  
  3597.     IEnumVMenu FAR * GetIP() const { return (IEnumVMenu FAR *) GetUnknown(); }
  3598.  
  3599.     operator IEnumVMenu FAR * () { return (IEnumVMenu FAR *) GetUnknown(); }
  3600.  
  3601. VW_PUBLIC:
  3602. #if 0
  3603.     //  This method list provided for information only...
  3604.     HRESULT Next(long celt, CVisioMenu FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  3605.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  3606.     HRESULT Reset(HRESULT FAR *lpRet);
  3607.     HRESULT Clone(IEnumVMenu FAR * FAR *ppenm, HRESULT FAR *lpRet);
  3608. #endif  //  0
  3609. };
  3610.  
  3611.  
  3612. //  ***************************************************************************
  3613. //  Declaration of class CVisioMenus
  3614.  
  3615. class FAR CVisioMenus : public CVisioUnknown
  3616. {
  3617. VW_PUBLIC:
  3618.     CVisioMenus()
  3619.         : CVisioUnknown() { }
  3620.  
  3621.     CVisioMenus(const CVisioMenus& other)
  3622.         : CVisioUnknown(other) { }
  3623.  
  3624.     CVisioMenus(const IVMenus FAR * other, BOOL bAssumeResponsibility= FALSE)
  3625.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3626.  
  3627.     const CVisioMenus FAR & operator=(const CVisioMenus FAR &other)
  3628.         {
  3629.         if ( &other != this )
  3630.             CopyIP(other.GetUnknown());
  3631.  
  3632.         return *this;
  3633.         }
  3634.  
  3635.     const CVisioMenus FAR & operator=(const IVMenus FAR * other)
  3636.         {
  3637.         if ( (LPUNKNOWN)other != GetUnknown() )
  3638.             CopyIP((LPUNKNOWN)other);
  3639.  
  3640.         return *this;
  3641.         }
  3642.  
  3643.     virtual ~CVisioMenus() { }
  3644.  
  3645.     IVMenus FAR * GetIP() const { return (IVMenus FAR *) GetUnknown(); }
  3646.  
  3647.     operator IVMenus FAR * () { return (IVMenus FAR *) GetUnknown(); }
  3648.  
  3649. VW_PUBLIC:
  3650.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  3651.     HRESULT Item(long lIndex, CVisioMenu FAR &rWrap);
  3652.     HRESULT Add(CVisioMenu FAR &rWrap);
  3653.     HRESULT AddAt(long lIndex, CVisioMenu FAR &rWrap);
  3654.     HRESULT Count(long FAR *lpRet);
  3655.     HRESULT Parent(CVisioMenuSet FAR &rWrap);
  3656. };
  3657.  
  3658.  
  3659. //  ***************************************************************************
  3660. //  Declaration of class CVisioMenuSet
  3661.  
  3662. class FAR CVisioMenuSet : public CVisioUnknown
  3663. {
  3664. VW_PUBLIC:
  3665.     CVisioMenuSet()
  3666.         : CVisioUnknown() { }
  3667.  
  3668.     CVisioMenuSet(const CVisioMenuSet& other)
  3669.         : CVisioUnknown(other) { }
  3670.  
  3671.     CVisioMenuSet(const IVMenuSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  3672.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3673.  
  3674.     const CVisioMenuSet FAR & operator=(const CVisioMenuSet FAR &other)
  3675.         {
  3676.         if ( &other != this )
  3677.             CopyIP(other.GetUnknown());
  3678.  
  3679.         return *this;
  3680.         }
  3681.  
  3682.     const CVisioMenuSet FAR & operator=(const IVMenuSet FAR * other)
  3683.         {
  3684.         if ( (LPUNKNOWN)other != GetUnknown() )
  3685.             CopyIP((LPUNKNOWN)other);
  3686.  
  3687.         return *this;
  3688.         }
  3689.  
  3690.     virtual ~CVisioMenuSet() { }
  3691.  
  3692.     IVMenuSet FAR * GetIP() const { return (IVMenuSet FAR *) GetUnknown(); }
  3693.  
  3694.     operator IVMenuSet FAR * () { return (IVMenuSet FAR *) GetUnknown(); }
  3695.  
  3696. VW_PUBLIC:
  3697.     HRESULT Delete();
  3698.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  3699.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3700.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  3701.     HRESULT SetID(long FAR *lpRet);
  3702.     HRESULT Menus(CVisioMenus FAR &rWrap);
  3703.     HRESULT Parent(CVisioMenuSets FAR &rWrap);
  3704. };
  3705.  
  3706.  
  3707. //  ***************************************************************************
  3708. //  Declaration of class CVisioIEnumVMenuSet
  3709.  
  3710. class FAR CVisioIEnumVMenuSet : public CVisioUnknown
  3711. {
  3712. VW_PUBLIC:
  3713.     CVisioIEnumVMenuSet()
  3714.         : CVisioUnknown() { }
  3715.  
  3716.     CVisioIEnumVMenuSet(const CVisioIEnumVMenuSet& other)
  3717.         : CVisioUnknown(other) { }
  3718.  
  3719.     CVisioIEnumVMenuSet(const IEnumVMenuSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  3720.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3721.  
  3722.     const CVisioIEnumVMenuSet FAR & operator=(const CVisioIEnumVMenuSet FAR &other)
  3723.         {
  3724.         if ( &other != this )
  3725.             CopyIP(other.GetUnknown());
  3726.  
  3727.         return *this;
  3728.         }
  3729.  
  3730.     const CVisioIEnumVMenuSet FAR & operator=(const IEnumVMenuSet FAR * other)
  3731.         {
  3732.         if ( (LPUNKNOWN)other != GetUnknown() )
  3733.             CopyIP((LPUNKNOWN)other);
  3734.  
  3735.         return *this;
  3736.         }
  3737.  
  3738.     virtual ~CVisioIEnumVMenuSet() { }
  3739.  
  3740.     IEnumVMenuSet FAR * GetIP() const { return (IEnumVMenuSet FAR *) GetUnknown(); }
  3741.  
  3742.     operator IEnumVMenuSet FAR * () { return (IEnumVMenuSet FAR *) GetUnknown(); }
  3743.  
  3744. VW_PUBLIC:
  3745. #if 0
  3746.     //  This method list provided for information only...
  3747.     HRESULT Next(long celt, CVisioMenuSet FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  3748.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  3749.     HRESULT Reset(HRESULT FAR *lpRet);
  3750.     HRESULT Clone(IEnumVMenuSet FAR * FAR *ppenm, HRESULT FAR *lpRet);
  3751. #endif  //  0
  3752. };
  3753.  
  3754.  
  3755. //  ***************************************************************************
  3756. //  Declaration of class CVisioMenuSets
  3757.  
  3758. class FAR CVisioMenuSets : public CVisioUnknown
  3759. {
  3760. VW_PUBLIC:
  3761.     CVisioMenuSets()
  3762.         : CVisioUnknown() { }
  3763.  
  3764.     CVisioMenuSets(const CVisioMenuSets& other)
  3765.         : CVisioUnknown(other) { }
  3766.  
  3767.     CVisioMenuSets(const IVMenuSets FAR * other, BOOL bAssumeResponsibility= FALSE)
  3768.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3769.  
  3770.     const CVisioMenuSets FAR & operator=(const CVisioMenuSets FAR &other)
  3771.         {
  3772.         if ( &other != this )
  3773.             CopyIP(other.GetUnknown());
  3774.  
  3775.         return *this;
  3776.         }
  3777.  
  3778.     const CVisioMenuSets FAR & operator=(const IVMenuSets FAR * other)
  3779.         {
  3780.         if ( (LPUNKNOWN)other != GetUnknown() )
  3781.             CopyIP((LPUNKNOWN)other);
  3782.  
  3783.         return *this;
  3784.         }
  3785.  
  3786.     virtual ~CVisioMenuSets() { }
  3787.  
  3788.     IVMenuSets FAR * GetIP() const { return (IVMenuSets FAR *) GetUnknown(); }
  3789.  
  3790.     operator IVMenuSets FAR * () { return (IVMenuSets FAR *) GetUnknown(); }
  3791.  
  3792. VW_PUBLIC:
  3793.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  3794.     HRESULT Item(long lIndex, CVisioMenuSet FAR &rWrap);
  3795.     HRESULT ItemAtID(long lID, CVisioMenuSet FAR &rWrap);
  3796.     HRESULT Add(CVisioMenuSet FAR &rWrap);
  3797.     HRESULT AddAtID(long lID, CVisioMenuSet FAR &rWrap);
  3798.     HRESULT Count(long FAR *lpRet);
  3799.     HRESULT Parent(CVisioUIObject FAR &rWrap);
  3800. };
  3801.  
  3802.  
  3803. //  ***************************************************************************
  3804. //  Declaration of class CVisioToolbarItem
  3805.  
  3806. class FAR CVisioToolbarItem : public CVisioUnknown
  3807. {
  3808. VW_PUBLIC:
  3809.     CVisioToolbarItem()
  3810.         : CVisioUnknown() { }
  3811.  
  3812.     CVisioToolbarItem(const CVisioToolbarItem& other)
  3813.         : CVisioUnknown(other) { }
  3814.  
  3815.     CVisioToolbarItem(const IVToolbarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3816.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3817.  
  3818.     const CVisioToolbarItem FAR & operator=(const CVisioToolbarItem FAR &other)
  3819.         {
  3820.         if ( &other != this )
  3821.             CopyIP(other.GetUnknown());
  3822.  
  3823.         return *this;
  3824.         }
  3825.  
  3826.     const CVisioToolbarItem FAR & operator=(const IVToolbarItem FAR * other)
  3827.         {
  3828.         if ( (LPUNKNOWN)other != GetUnknown() )
  3829.             CopyIP((LPUNKNOWN)other);
  3830.  
  3831.         return *this;
  3832.         }
  3833.  
  3834.     virtual ~CVisioToolbarItem() { }
  3835.  
  3836.     IVToolbarItem FAR * GetIP() const { return (IVToolbarItem FAR *) GetUnknown(); }
  3837.  
  3838.     operator IVToolbarItem FAR * () { return (IVToolbarItem FAR *) GetUnknown(); }
  3839.  
  3840. VW_PUBLIC:
  3841.     HRESULT Delete();
  3842.     HRESULT IconFileName(BSTR_HELPER_CLASS FAR &IconFileName);
  3843.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  3844.     HRESULT Index(long FAR *lpRet);
  3845.     HRESULT Parent(CVisioToolbarItems FAR &rWrap);
  3846.     HRESULT putCmdNum(VW_CONST short param01);
  3847.     HRESULT getCmdNum(short FAR *lpRet);
  3848.     HRESULT putHelpContextID(VW_CONST short param01);
  3849.     HRESULT getHelpContextID(short FAR *lpRet);
  3850.     HRESULT putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3851.     HRESULT getActionText(BSTR_HELPER_CLASS FAR &rWrap);
  3852.     HRESULT putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3853.     HRESULT getAddOnName(BSTR_HELPER_CLASS FAR &rWrap);
  3854.     HRESULT putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3855.     HRESULT getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap);
  3856.     HRESULT putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3857.     HRESULT getHelpFile(BSTR_HELPER_CLASS FAR &rWrap);
  3858.     HRESULT putCntrlType(VW_CONST short param01);
  3859.     HRESULT getCntrlType(short FAR *lpRet);
  3860.     HRESULT putCntrlID(VW_CONST short param01);
  3861.     HRESULT getCntrlID(short FAR *lpRet);
  3862.     HRESULT putTypeSpecific1(VW_CONST short param01);
  3863.     HRESULT getTypeSpecific1(short FAR *lpRet);
  3864.     HRESULT putPriority(VW_CONST short param01);
  3865.     HRESULT getPriority(short FAR *lpRet);
  3866.     HRESULT putSpacing(VW_CONST short param01);
  3867.     HRESULT getSpacing(short FAR *lpRet);
  3868.     HRESULT putTypeSpecific2(VW_CONST short param01);
  3869.     HRESULT getTypeSpecific2(short FAR *lpRet);
  3870. };
  3871.  
  3872.  
  3873. //  ***************************************************************************
  3874. //  Declaration of class CVisioIEnumVToolbarItem
  3875.  
  3876. class FAR CVisioIEnumVToolbarItem : public CVisioUnknown
  3877. {
  3878. VW_PUBLIC:
  3879.     CVisioIEnumVToolbarItem()
  3880.         : CVisioUnknown() { }
  3881.  
  3882.     CVisioIEnumVToolbarItem(const CVisioIEnumVToolbarItem& other)
  3883.         : CVisioUnknown(other) { }
  3884.  
  3885.     CVisioIEnumVToolbarItem(const IEnumVToolbarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3886.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3887.  
  3888.     const CVisioIEnumVToolbarItem FAR & operator=(const CVisioIEnumVToolbarItem FAR &other)
  3889.         {
  3890.         if ( &other != this )
  3891.             CopyIP(other.GetUnknown());
  3892.  
  3893.         return *this;
  3894.         }
  3895.  
  3896.     const CVisioIEnumVToolbarItem FAR & operator=(const IEnumVToolbarItem FAR * other)
  3897.         {
  3898.         if ( (LPUNKNOWN)other != GetUnknown() )
  3899.             CopyIP((LPUNKNOWN)other);
  3900.  
  3901.         return *this;
  3902.         }
  3903.  
  3904.     virtual ~CVisioIEnumVToolbarItem() { }
  3905.  
  3906.     IEnumVToolbarItem FAR * GetIP() const { return (IEnumVToolbarItem FAR *) GetUnknown(); }
  3907.  
  3908.     operator IEnumVToolbarItem FAR * () { return (IEnumVToolbarItem FAR *) GetUnknown(); }
  3909.  
  3910. VW_PUBLIC:
  3911. #if 0
  3912.     //  This method list provided for information only...
  3913.     HRESULT Next(long celt, CVisioToolbarItem FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  3914.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  3915.     HRESULT Reset(HRESULT FAR *lpRet);
  3916.     HRESULT Clone(IEnumVToolbarItem FAR * FAR *ppenm, HRESULT FAR *lpRet);
  3917. #endif  //  0
  3918. };
  3919.  
  3920.  
  3921. //  ***************************************************************************
  3922. //  Declaration of class CVisioToolbarItems
  3923.  
  3924. class FAR CVisioToolbarItems : public CVisioUnknown
  3925. {
  3926. VW_PUBLIC:
  3927.     CVisioToolbarItems()
  3928.         : CVisioUnknown() { }
  3929.  
  3930.     CVisioToolbarItems(const CVisioToolbarItems& other)
  3931.         : CVisioUnknown(other) { }
  3932.  
  3933.     CVisioToolbarItems(const IVToolbarItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  3934.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3935.  
  3936.     const CVisioToolbarItems FAR & operator=(const CVisioToolbarItems FAR &other)
  3937.         {
  3938.         if ( &other != this )
  3939.             CopyIP(other.GetUnknown());
  3940.  
  3941.         return *this;
  3942.         }
  3943.  
  3944.     const CVisioToolbarItems FAR & operator=(const IVToolbarItems FAR * other)
  3945.         {
  3946.         if ( (LPUNKNOWN)other != GetUnknown() )
  3947.             CopyIP((LPUNKNOWN)other);
  3948.  
  3949.         return *this;
  3950.         }
  3951.  
  3952.     virtual ~CVisioToolbarItems() { }
  3953.  
  3954.     IVToolbarItems FAR * GetIP() const { return (IVToolbarItems FAR *) GetUnknown(); }
  3955.  
  3956.     operator IVToolbarItems FAR * () { return (IVToolbarItems FAR *) GetUnknown(); }
  3957.  
  3958. VW_PUBLIC:
  3959.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  3960.     HRESULT Item(long lIndex, CVisioToolbarItem FAR &rWrap);
  3961.     HRESULT Add(CVisioToolbarItem FAR &rWrap);
  3962.     HRESULT AddAt(long lIndex, CVisioToolbarItem FAR &rWrap);
  3963.     HRESULT Count(long FAR *lpRet);
  3964.     HRESULT Parent(CVisioToolbar FAR &rWrap);
  3965. };
  3966.  
  3967.  
  3968. //  ***************************************************************************
  3969. //  Declaration of class CVisioToolbar
  3970.  
  3971. class FAR CVisioToolbar : public CVisioUnknown
  3972. {
  3973. VW_PUBLIC:
  3974.     CVisioToolbar()
  3975.         : CVisioUnknown() { }
  3976.  
  3977.     CVisioToolbar(const CVisioToolbar& other)
  3978.         : CVisioUnknown(other) { }
  3979.  
  3980.     CVisioToolbar(const IVToolbar FAR * other, BOOL bAssumeResponsibility= FALSE)
  3981.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3982.  
  3983.     const CVisioToolbar FAR & operator=(const CVisioToolbar FAR &other)
  3984.         {
  3985.         if ( &other != this )
  3986.             CopyIP(other.GetUnknown());
  3987.  
  3988.         return *this;
  3989.         }
  3990.  
  3991.     const CVisioToolbar FAR & operator=(const IVToolbar FAR * other)
  3992.         {
  3993.         if ( (LPUNKNOWN)other != GetUnknown() )
  3994.             CopyIP((LPUNKNOWN)other);
  3995.  
  3996.         return *this;
  3997.         }
  3998.  
  3999.     virtual ~CVisioToolbar() { }
  4000.  
  4001.     IVToolbar FAR * GetIP() const { return (IVToolbar FAR *) GetUnknown(); }
  4002.  
  4003.     operator IVToolbar FAR * () { return (IVToolbar FAR *) GetUnknown(); }
  4004.  
  4005. VW_PUBLIC:
  4006.     HRESULT Delete();
  4007.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4008.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4009.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  4010.     HRESULT Index(long FAR *lpRet);
  4011.     HRESULT ToolbarItems(CVisioToolbarItems FAR &rWrap);
  4012.     HRESULT Parent(CVisioToolbars FAR &rWrap);
  4013. };
  4014.  
  4015.  
  4016. //  ***************************************************************************
  4017. //  Declaration of class CVisioIEnumVToolbar
  4018.  
  4019. class FAR CVisioIEnumVToolbar : public CVisioUnknown
  4020. {
  4021. VW_PUBLIC:
  4022.     CVisioIEnumVToolbar()
  4023.         : CVisioUnknown() { }
  4024.  
  4025.     CVisioIEnumVToolbar(const CVisioIEnumVToolbar& other)
  4026.         : CVisioUnknown(other) { }
  4027.  
  4028.     CVisioIEnumVToolbar(const IEnumVToolbar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4029.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4030.  
  4031.     const CVisioIEnumVToolbar FAR & operator=(const CVisioIEnumVToolbar FAR &other)
  4032.         {
  4033.         if ( &other != this )
  4034.             CopyIP(other.GetUnknown());
  4035.  
  4036.         return *this;
  4037.         }
  4038.  
  4039.     const CVisioIEnumVToolbar FAR & operator=(const IEnumVToolbar FAR * other)
  4040.         {
  4041.         if ( (LPUNKNOWN)other != GetUnknown() )
  4042.             CopyIP((LPUNKNOWN)other);
  4043.  
  4044.         return *this;
  4045.         }
  4046.  
  4047.     virtual ~CVisioIEnumVToolbar() { }
  4048.  
  4049.     IEnumVToolbar FAR * GetIP() const { return (IEnumVToolbar FAR *) GetUnknown(); }
  4050.  
  4051.     operator IEnumVToolbar FAR * () { return (IEnumVToolbar FAR *) GetUnknown(); }
  4052.  
  4053. VW_PUBLIC:
  4054. #if 0
  4055.     //  This method list provided for information only...
  4056.     HRESULT Next(long celt, CVisioToolbar FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4057.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4058.     HRESULT Reset(HRESULT FAR *lpRet);
  4059.     HRESULT Clone(IEnumVToolbar FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4060. #endif  //  0
  4061. };
  4062.  
  4063.  
  4064. //  ***************************************************************************
  4065. //  Declaration of class CVisioToolbars
  4066.  
  4067. class FAR CVisioToolbars : public CVisioUnknown
  4068. {
  4069. VW_PUBLIC:
  4070.     CVisioToolbars()
  4071.         : CVisioUnknown() { }
  4072.  
  4073.     CVisioToolbars(const CVisioToolbars& other)
  4074.         : CVisioUnknown(other) { }
  4075.  
  4076.     CVisioToolbars(const IVToolbars FAR * other, BOOL bAssumeResponsibility= FALSE)
  4077.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4078.  
  4079.     const CVisioToolbars FAR & operator=(const CVisioToolbars FAR &other)
  4080.         {
  4081.         if ( &other != this )
  4082.             CopyIP(other.GetUnknown());
  4083.  
  4084.         return *this;
  4085.         }
  4086.  
  4087.     const CVisioToolbars FAR & operator=(const IVToolbars FAR * other)
  4088.         {
  4089.         if ( (LPUNKNOWN)other != GetUnknown() )
  4090.             CopyIP((LPUNKNOWN)other);
  4091.  
  4092.         return *this;
  4093.         }
  4094.  
  4095.     virtual ~CVisioToolbars() { }
  4096.  
  4097.     IVToolbars FAR * GetIP() const { return (IVToolbars FAR *) GetUnknown(); }
  4098.  
  4099.     operator IVToolbars FAR * () { return (IVToolbars FAR *) GetUnknown(); }
  4100.  
  4101. VW_PUBLIC:
  4102.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4103.     HRESULT Item(long lIndex, CVisioToolbar FAR &rWrap);
  4104.     HRESULT Add(CVisioToolbar FAR &rWrap);
  4105.     HRESULT AddAt(long lIndex, CVisioToolbar FAR &rWrap);
  4106.     HRESULT Count(long FAR *lpRet);
  4107.     HRESULT Parent(CVisioToolbarSet FAR &rWrap);
  4108. };
  4109.  
  4110.  
  4111. //  ***************************************************************************
  4112. //  Declaration of class CVisioToolbarSet
  4113.  
  4114. class FAR CVisioToolbarSet : public CVisioUnknown
  4115. {
  4116. VW_PUBLIC:
  4117.     CVisioToolbarSet()
  4118.         : CVisioUnknown() { }
  4119.  
  4120.     CVisioToolbarSet(const CVisioToolbarSet& other)
  4121.         : CVisioUnknown(other) { }
  4122.  
  4123.     CVisioToolbarSet(const IVToolbarSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  4124.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4125.  
  4126.     const CVisioToolbarSet FAR & operator=(const CVisioToolbarSet FAR &other)
  4127.         {
  4128.         if ( &other != this )
  4129.             CopyIP(other.GetUnknown());
  4130.  
  4131.         return *this;
  4132.         }
  4133.  
  4134.     const CVisioToolbarSet FAR & operator=(const IVToolbarSet FAR * other)
  4135.         {
  4136.         if ( (LPUNKNOWN)other != GetUnknown() )
  4137.             CopyIP((LPUNKNOWN)other);
  4138.  
  4139.         return *this;
  4140.         }
  4141.  
  4142.     virtual ~CVisioToolbarSet() { }
  4143.  
  4144.     IVToolbarSet FAR * GetIP() const { return (IVToolbarSet FAR *) GetUnknown(); }
  4145.  
  4146.     operator IVToolbarSet FAR * () { return (IVToolbarSet FAR *) GetUnknown(); }
  4147.  
  4148. VW_PUBLIC:
  4149.     HRESULT Delete();
  4150.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4151.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4152.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  4153.     HRESULT SetID(long FAR *lpRet);
  4154.     HRESULT Toolbars(CVisioToolbars FAR &rWrap);
  4155.     HRESULT Parent(CVisioToolbarSets FAR &rWrap);
  4156. };
  4157.  
  4158.  
  4159. //  ***************************************************************************
  4160. //  Declaration of class CVisioIEnumVToolbarSet
  4161.  
  4162. class FAR CVisioIEnumVToolbarSet : public CVisioUnknown
  4163. {
  4164. VW_PUBLIC:
  4165.     CVisioIEnumVToolbarSet()
  4166.         : CVisioUnknown() { }
  4167.  
  4168.     CVisioIEnumVToolbarSet(const CVisioIEnumVToolbarSet& other)
  4169.         : CVisioUnknown(other) { }
  4170.  
  4171.     CVisioIEnumVToolbarSet(const IEnumVToolbarSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  4172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4173.  
  4174.     const CVisioIEnumVToolbarSet FAR & operator=(const CVisioIEnumVToolbarSet FAR &other)
  4175.         {
  4176.         if ( &other != this )
  4177.             CopyIP(other.GetUnknown());
  4178.  
  4179.         return *this;
  4180.         }
  4181.  
  4182.     const CVisioIEnumVToolbarSet FAR & operator=(const IEnumVToolbarSet FAR * other)
  4183.         {
  4184.         if ( (LPUNKNOWN)other != GetUnknown() )
  4185.             CopyIP((LPUNKNOWN)other);
  4186.  
  4187.         return *this;
  4188.         }
  4189.  
  4190.     virtual ~CVisioIEnumVToolbarSet() { }
  4191.  
  4192.     IEnumVToolbarSet FAR * GetIP() const { return (IEnumVToolbarSet FAR *) GetUnknown(); }
  4193.  
  4194.     operator IEnumVToolbarSet FAR * () { return (IEnumVToolbarSet FAR *) GetUnknown(); }
  4195.  
  4196. VW_PUBLIC:
  4197. #if 0
  4198.     //  This method list provided for information only...
  4199.     HRESULT Next(long celt, CVisioToolbarSet FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4200.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4201.     HRESULT Reset(HRESULT FAR *lpRet);
  4202.     HRESULT Clone(IEnumVToolbarSet FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4203. #endif  //  0
  4204. };
  4205.  
  4206.  
  4207. //  ***************************************************************************
  4208. //  Declaration of class CVisioToolbarSets
  4209.  
  4210. class FAR CVisioToolbarSets : public CVisioUnknown
  4211. {
  4212. VW_PUBLIC:
  4213.     CVisioToolbarSets()
  4214.         : CVisioUnknown() { }
  4215.  
  4216.     CVisioToolbarSets(const CVisioToolbarSets& other)
  4217.         : CVisioUnknown(other) { }
  4218.  
  4219.     CVisioToolbarSets(const IVToolbarSets FAR * other, BOOL bAssumeResponsibility= FALSE)
  4220.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4221.  
  4222.     const CVisioToolbarSets FAR & operator=(const CVisioToolbarSets FAR &other)
  4223.         {
  4224.         if ( &other != this )
  4225.             CopyIP(other.GetUnknown());
  4226.  
  4227.         return *this;
  4228.         }
  4229.  
  4230.     const CVisioToolbarSets FAR & operator=(const IVToolbarSets FAR * other)
  4231.         {
  4232.         if ( (LPUNKNOWN)other != GetUnknown() )
  4233.             CopyIP((LPUNKNOWN)other);
  4234.  
  4235.         return *this;
  4236.         }
  4237.  
  4238.     virtual ~CVisioToolbarSets() { }
  4239.  
  4240.     IVToolbarSets FAR * GetIP() const { return (IVToolbarSets FAR *) GetUnknown(); }
  4241.  
  4242.     operator IVToolbarSets FAR * () { return (IVToolbarSets FAR *) GetUnknown(); }
  4243.  
  4244. VW_PUBLIC:
  4245.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4246.     HRESULT Item(long lIndex, CVisioToolbarSet FAR &rWrap);
  4247.     HRESULT ItemAtID(long lID, CVisioToolbarSet FAR &rWrap);
  4248.     HRESULT Add(CVisioToolbarSet FAR &rWrap);
  4249.     HRESULT AddAtID(long lID, CVisioToolbarSet FAR &rWrap);
  4250.     HRESULT Count(long FAR *lpRet);
  4251.     HRESULT Parent(CVisioUIObject FAR &rWrap);
  4252. };
  4253.  
  4254.  
  4255. //  ***************************************************************************
  4256. //  Declaration of class CVisioStatusBarItem
  4257.  
  4258. class FAR CVisioStatusBarItem : public CVisioUnknown
  4259. {
  4260. VW_PUBLIC:
  4261.     CVisioStatusBarItem()
  4262.         : CVisioUnknown() { }
  4263.  
  4264.     CVisioStatusBarItem(const CVisioStatusBarItem& other)
  4265.         : CVisioUnknown(other) { }
  4266.  
  4267.     CVisioStatusBarItem(const IVStatusBarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4268.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4269.  
  4270.     const CVisioStatusBarItem FAR & operator=(const CVisioStatusBarItem FAR &other)
  4271.         {
  4272.         if ( &other != this )
  4273.             CopyIP(other.GetUnknown());
  4274.  
  4275.         return *this;
  4276.         }
  4277.  
  4278.     const CVisioStatusBarItem FAR & operator=(const IVStatusBarItem FAR * other)
  4279.         {
  4280.         if ( (LPUNKNOWN)other != GetUnknown() )
  4281.             CopyIP((LPUNKNOWN)other);
  4282.  
  4283.         return *this;
  4284.         }
  4285.  
  4286.     virtual ~CVisioStatusBarItem() { }
  4287.  
  4288.     IVStatusBarItem FAR * GetIP() const { return (IVStatusBarItem FAR *) GetUnknown(); }
  4289.  
  4290.     operator IVStatusBarItem FAR * () { return (IVStatusBarItem FAR *) GetUnknown(); }
  4291.  
  4292. VW_PUBLIC:
  4293.     HRESULT Delete();
  4294.     HRESULT IconFileName(BSTR_HELPER_CLASS FAR &IconFileName);
  4295.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4296.     HRESULT Index(long FAR *lpRet);
  4297.     HRESULT Parent(CVisioStatusBarItems FAR &rWrap);
  4298.     HRESULT putCmdNum(VW_CONST short param01);
  4299.     HRESULT getCmdNum(short FAR *lpRet);
  4300.     HRESULT putHelpContextID(VW_CONST short param01);
  4301.     HRESULT getHelpContextID(short FAR *lpRet);
  4302.     HRESULT putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4303.     HRESULT getActionText(BSTR_HELPER_CLASS FAR &rWrap);
  4304.     HRESULT putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4305.     HRESULT getAddOnName(BSTR_HELPER_CLASS FAR &rWrap);
  4306.     HRESULT putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4307.     HRESULT getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap);
  4308.     HRESULT putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4309.     HRESULT getHelpFile(BSTR_HELPER_CLASS FAR &rWrap);
  4310.     HRESULT putCntrlType(VW_CONST short param01);
  4311.     HRESULT getCntrlType(short FAR *lpRet);
  4312.     HRESULT putCntrlID(VW_CONST short param01);
  4313.     HRESULT getCntrlID(short FAR *lpRet);
  4314.     HRESULT putTypeSpecific1(VW_CONST short param01);
  4315.     HRESULT getTypeSpecific1(short FAR *lpRet);
  4316.     HRESULT putPriority(VW_CONST short param01);
  4317.     HRESULT getPriority(short FAR *lpRet);
  4318.     HRESULT putSpacing(VW_CONST short param01);
  4319.     HRESULT getSpacing(short FAR *lpRet);
  4320.     HRESULT putTypeSpecific2(VW_CONST short param01);
  4321.     HRESULT getTypeSpecific2(short FAR *lpRet);
  4322. };
  4323.  
  4324.  
  4325. //  ***************************************************************************
  4326. //  Declaration of class CVisioIEnumVStatusBarItem
  4327.  
  4328. class FAR CVisioIEnumVStatusBarItem : public CVisioUnknown
  4329. {
  4330. VW_PUBLIC:
  4331.     CVisioIEnumVStatusBarItem()
  4332.         : CVisioUnknown() { }
  4333.  
  4334.     CVisioIEnumVStatusBarItem(const CVisioIEnumVStatusBarItem& other)
  4335.         : CVisioUnknown(other) { }
  4336.  
  4337.     CVisioIEnumVStatusBarItem(const IEnumVStatusBarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4338.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4339.  
  4340.     const CVisioIEnumVStatusBarItem FAR & operator=(const CVisioIEnumVStatusBarItem FAR &other)
  4341.         {
  4342.         if ( &other != this )
  4343.             CopyIP(other.GetUnknown());
  4344.  
  4345.         return *this;
  4346.         }
  4347.  
  4348.     const CVisioIEnumVStatusBarItem FAR & operator=(const IEnumVStatusBarItem FAR * other)
  4349.         {
  4350.         if ( (LPUNKNOWN)other != GetUnknown() )
  4351.             CopyIP((LPUNKNOWN)other);
  4352.  
  4353.         return *this;
  4354.         }
  4355.  
  4356.     virtual ~CVisioIEnumVStatusBarItem() { }
  4357.  
  4358.     IEnumVStatusBarItem FAR * GetIP() const { return (IEnumVStatusBarItem FAR *) GetUnknown(); }
  4359.  
  4360.     operator IEnumVStatusBarItem FAR * () { return (IEnumVStatusBarItem FAR *) GetUnknown(); }
  4361.  
  4362. VW_PUBLIC:
  4363. #if 0
  4364.     //  This method list provided for information only...
  4365.     HRESULT Next(long celt, CVisioStatusBarItem FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4366.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4367.     HRESULT Reset(HRESULT FAR *lpRet);
  4368.     HRESULT Clone(IEnumVStatusBarItem FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4369. #endif  //  0
  4370. };
  4371.  
  4372.  
  4373. //  ***************************************************************************
  4374. //  Declaration of class CVisioStatusBarItems
  4375.  
  4376. class FAR CVisioStatusBarItems : public CVisioUnknown
  4377. {
  4378. VW_PUBLIC:
  4379.     CVisioStatusBarItems()
  4380.         : CVisioUnknown() { }
  4381.  
  4382.     CVisioStatusBarItems(const CVisioStatusBarItems& other)
  4383.         : CVisioUnknown(other) { }
  4384.  
  4385.     CVisioStatusBarItems(const IVStatusBarItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  4386.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4387.  
  4388.     const CVisioStatusBarItems FAR & operator=(const CVisioStatusBarItems FAR &other)
  4389.         {
  4390.         if ( &other != this )
  4391.             CopyIP(other.GetUnknown());
  4392.  
  4393.         return *this;
  4394.         }
  4395.  
  4396.     const CVisioStatusBarItems FAR & operator=(const IVStatusBarItems FAR * other)
  4397.         {
  4398.         if ( (LPUNKNOWN)other != GetUnknown() )
  4399.             CopyIP((LPUNKNOWN)other);
  4400.  
  4401.         return *this;
  4402.         }
  4403.  
  4404.     virtual ~CVisioStatusBarItems() { }
  4405.  
  4406.     IVStatusBarItems FAR * GetIP() const { return (IVStatusBarItems FAR *) GetUnknown(); }
  4407.  
  4408.     operator IVStatusBarItems FAR * () { return (IVStatusBarItems FAR *) GetUnknown(); }
  4409.  
  4410. VW_PUBLIC:
  4411.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4412.     HRESULT Item(long lIndex, CVisioStatusBarItem FAR &rWrap);
  4413.     HRESULT Add(CVisioStatusBarItem FAR &rWrap);
  4414.     HRESULT AddAt(long lIndex, CVisioStatusBarItem FAR &rWrap);
  4415.     HRESULT Count(long FAR *lpRet);
  4416.     HRESULT Parent(CVisioStatusBar FAR &rWrap);
  4417. };
  4418.  
  4419.  
  4420. //  ***************************************************************************
  4421. //  Declaration of class CVisioStatusBar
  4422.  
  4423. class FAR CVisioStatusBar : public CVisioUnknown
  4424. {
  4425. VW_PUBLIC:
  4426.     CVisioStatusBar()
  4427.         : CVisioUnknown() { }
  4428.  
  4429.     CVisioStatusBar(const CVisioStatusBar& other)
  4430.         : CVisioUnknown(other) { }
  4431.  
  4432.     CVisioStatusBar(const IVStatusBar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4433.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4434.  
  4435.     const CVisioStatusBar FAR & operator=(const CVisioStatusBar FAR &other)
  4436.         {
  4437.         if ( &other != this )
  4438.             CopyIP(other.GetUnknown());
  4439.  
  4440.         return *this;
  4441.         }
  4442.  
  4443.     const CVisioStatusBar FAR & operator=(const IVStatusBar FAR * other)
  4444.         {
  4445.         if ( (LPUNKNOWN)other != GetUnknown() )
  4446.             CopyIP((LPUNKNOWN)other);
  4447.  
  4448.         return *this;
  4449.         }
  4450.  
  4451.     virtual ~CVisioStatusBar() { }
  4452.  
  4453.     IVStatusBar FAR * GetIP() const { return (IVStatusBar FAR *) GetUnknown(); }
  4454.  
  4455.     operator IVStatusBar FAR * () { return (IVStatusBar FAR *) GetUnknown(); }
  4456.  
  4457. VW_PUBLIC:
  4458.     HRESULT Delete();
  4459.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4460.     HRESULT putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4461.     HRESULT getCaption(BSTR_HELPER_CLASS FAR &rWrap);
  4462.     HRESULT SetID(long FAR *lpRet);
  4463.     HRESULT StatusBarItems(CVisioStatusBarItems FAR &rWrap);
  4464.     HRESULT Parent(CVisioStatusBars FAR &rWrap);
  4465. };
  4466.  
  4467.  
  4468. //  ***************************************************************************
  4469. //  Declaration of class CVisioIEnumVStatusBar
  4470.  
  4471. class FAR CVisioIEnumVStatusBar : public CVisioUnknown
  4472. {
  4473. VW_PUBLIC:
  4474.     CVisioIEnumVStatusBar()
  4475.         : CVisioUnknown() { }
  4476.  
  4477.     CVisioIEnumVStatusBar(const CVisioIEnumVStatusBar& other)
  4478.         : CVisioUnknown(other) { }
  4479.  
  4480.     CVisioIEnumVStatusBar(const IEnumVStatusBar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4481.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4482.  
  4483.     const CVisioIEnumVStatusBar FAR & operator=(const CVisioIEnumVStatusBar FAR &other)
  4484.         {
  4485.         if ( &other != this )
  4486.             CopyIP(other.GetUnknown());
  4487.  
  4488.         return *this;
  4489.         }
  4490.  
  4491.     const CVisioIEnumVStatusBar FAR & operator=(const IEnumVStatusBar FAR * other)
  4492.         {
  4493.         if ( (LPUNKNOWN)other != GetUnknown() )
  4494.             CopyIP((LPUNKNOWN)other);
  4495.  
  4496.         return *this;
  4497.         }
  4498.  
  4499.     virtual ~CVisioIEnumVStatusBar() { }
  4500.  
  4501.     IEnumVStatusBar FAR * GetIP() const { return (IEnumVStatusBar FAR *) GetUnknown(); }
  4502.  
  4503.     operator IEnumVStatusBar FAR * () { return (IEnumVStatusBar FAR *) GetUnknown(); }
  4504.  
  4505. VW_PUBLIC:
  4506. #if 0
  4507.     //  This method list provided for information only...
  4508.     HRESULT Next(long celt, CVisioStatusBar FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4509.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4510.     HRESULT Reset(HRESULT FAR *lpRet);
  4511.     HRESULT Clone(IEnumVStatusBar FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4512. #endif  //  0
  4513. };
  4514.  
  4515.  
  4516. //  ***************************************************************************
  4517. //  Declaration of class CVisioStatusBars
  4518.  
  4519. class FAR CVisioStatusBars : public CVisioUnknown
  4520. {
  4521. VW_PUBLIC:
  4522.     CVisioStatusBars()
  4523.         : CVisioUnknown() { }
  4524.  
  4525.     CVisioStatusBars(const CVisioStatusBars& other)
  4526.         : CVisioUnknown(other) { }
  4527.  
  4528.     CVisioStatusBars(const IVStatusBars FAR * other, BOOL bAssumeResponsibility= FALSE)
  4529.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4530.  
  4531.     const CVisioStatusBars FAR & operator=(const CVisioStatusBars FAR &other)
  4532.         {
  4533.         if ( &other != this )
  4534.             CopyIP(other.GetUnknown());
  4535.  
  4536.         return *this;
  4537.         }
  4538.  
  4539.     const CVisioStatusBars FAR & operator=(const IVStatusBars FAR * other)
  4540.         {
  4541.         if ( (LPUNKNOWN)other != GetUnknown() )
  4542.             CopyIP((LPUNKNOWN)other);
  4543.  
  4544.         return *this;
  4545.         }
  4546.  
  4547.     virtual ~CVisioStatusBars() { }
  4548.  
  4549.     IVStatusBars FAR * GetIP() const { return (IVStatusBars FAR *) GetUnknown(); }
  4550.  
  4551.     operator IVStatusBars FAR * () { return (IVStatusBars FAR *) GetUnknown(); }
  4552.  
  4553. VW_PUBLIC:
  4554.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4555.     HRESULT Item(long lIndex, CVisioStatusBar FAR &rWrap);
  4556.     HRESULT ItemAtID(long lID, CVisioStatusBar FAR &rWrap);
  4557.     HRESULT Add(CVisioStatusBar FAR &rWrap);
  4558.     HRESULT AddAtID(long lID, CVisioStatusBar FAR &rWrap);
  4559.     HRESULT Count(long FAR *lpRet);
  4560.     HRESULT Parent(CVisioUIObject FAR &rWrap);
  4561. };
  4562.  
  4563.  
  4564. //  ***************************************************************************
  4565. //  Declaration of class CVisioAccelItem
  4566.  
  4567. class FAR CVisioAccelItem : public CVisioUnknown
  4568. {
  4569. VW_PUBLIC:
  4570.     CVisioAccelItem()
  4571.         : CVisioUnknown() { }
  4572.  
  4573.     CVisioAccelItem(const CVisioAccelItem& other)
  4574.         : CVisioUnknown(other) { }
  4575.  
  4576.     CVisioAccelItem(const IVAccelItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4577.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4578.  
  4579.     const CVisioAccelItem FAR & operator=(const CVisioAccelItem FAR &other)
  4580.         {
  4581.         if ( &other != this )
  4582.             CopyIP(other.GetUnknown());
  4583.  
  4584.         return *this;
  4585.         }
  4586.  
  4587.     const CVisioAccelItem FAR & operator=(const IVAccelItem FAR * other)
  4588.         {
  4589.         if ( (LPUNKNOWN)other != GetUnknown() )
  4590.             CopyIP((LPUNKNOWN)other);
  4591.  
  4592.         return *this;
  4593.         }
  4594.  
  4595.     virtual ~CVisioAccelItem() { }
  4596.  
  4597.     IVAccelItem FAR * GetIP() const { return (IVAccelItem FAR *) GetUnknown(); }
  4598.  
  4599.     operator IVAccelItem FAR * () { return (IVAccelItem FAR *) GetUnknown(); }
  4600.  
  4601. VW_PUBLIC:
  4602.     HRESULT Delete();
  4603.     HRESULT Default(short FAR *lpRet);
  4604.     HRESULT putCmdNum(VW_CONST short param01);
  4605.     HRESULT getCmdNum(short FAR *lpRet);
  4606.     HRESULT putKey(VW_CONST short param01);
  4607.     HRESULT getKey(short FAR *lpRet);
  4608.     HRESULT putAlt(VW_CONST short param01);
  4609.     HRESULT getAlt(short FAR *lpRet);
  4610.     HRESULT putShift(VW_CONST short param01);
  4611.     HRESULT getShift(short FAR *lpRet);
  4612.     HRESULT putControl(VW_CONST short param01);
  4613.     HRESULT getControl(short FAR *lpRet);
  4614.     HRESULT Parent(CVisioAccelItems FAR &rWrap);
  4615. };
  4616.  
  4617.  
  4618. //  ***************************************************************************
  4619. //  Declaration of class CVisioIEnumVAccelItem
  4620.  
  4621. class FAR CVisioIEnumVAccelItem : public CVisioUnknown
  4622. {
  4623. VW_PUBLIC:
  4624.     CVisioIEnumVAccelItem()
  4625.         : CVisioUnknown() { }
  4626.  
  4627.     CVisioIEnumVAccelItem(const CVisioIEnumVAccelItem& other)
  4628.         : CVisioUnknown(other) { }
  4629.  
  4630.     CVisioIEnumVAccelItem(const IEnumVAccelItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4631.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4632.  
  4633.     const CVisioIEnumVAccelItem FAR & operator=(const CVisioIEnumVAccelItem FAR &other)
  4634.         {
  4635.         if ( &other != this )
  4636.             CopyIP(other.GetUnknown());
  4637.  
  4638.         return *this;
  4639.         }
  4640.  
  4641.     const CVisioIEnumVAccelItem FAR & operator=(const IEnumVAccelItem FAR * other)
  4642.         {
  4643.         if ( (LPUNKNOWN)other != GetUnknown() )
  4644.             CopyIP((LPUNKNOWN)other);
  4645.  
  4646.         return *this;
  4647.         }
  4648.  
  4649.     virtual ~CVisioIEnumVAccelItem() { }
  4650.  
  4651.     IEnumVAccelItem FAR * GetIP() const { return (IEnumVAccelItem FAR *) GetUnknown(); }
  4652.  
  4653.     operator IEnumVAccelItem FAR * () { return (IEnumVAccelItem FAR *) GetUnknown(); }
  4654.  
  4655. VW_PUBLIC:
  4656. #if 0
  4657.     //  This method list provided for information only...
  4658.     HRESULT Next(long celt, CVisioAccelItem FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4659.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4660.     HRESULT Reset(HRESULT FAR *lpRet);
  4661.     HRESULT Clone(IEnumVAccelItem FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4662. #endif  //  0
  4663. };
  4664.  
  4665.  
  4666. //  ***************************************************************************
  4667. //  Declaration of class CVisioAccelItems
  4668.  
  4669. class FAR CVisioAccelItems : public CVisioUnknown
  4670. {
  4671. VW_PUBLIC:
  4672.     CVisioAccelItems()
  4673.         : CVisioUnknown() { }
  4674.  
  4675.     CVisioAccelItems(const CVisioAccelItems& other)
  4676.         : CVisioUnknown(other) { }
  4677.  
  4678.     CVisioAccelItems(const IVAccelItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  4679.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4680.  
  4681.     const CVisioAccelItems FAR & operator=(const CVisioAccelItems FAR &other)
  4682.         {
  4683.         if ( &other != this )
  4684.             CopyIP(other.GetUnknown());
  4685.  
  4686.         return *this;
  4687.         }
  4688.  
  4689.     const CVisioAccelItems FAR & operator=(const IVAccelItems FAR * other)
  4690.         {
  4691.         if ( (LPUNKNOWN)other != GetUnknown() )
  4692.             CopyIP((LPUNKNOWN)other);
  4693.  
  4694.         return *this;
  4695.         }
  4696.  
  4697.     virtual ~CVisioAccelItems() { }
  4698.  
  4699.     IVAccelItems FAR * GetIP() const { return (IVAccelItems FAR *) GetUnknown(); }
  4700.  
  4701.     operator IVAccelItems FAR * () { return (IVAccelItems FAR *) GetUnknown(); }
  4702.  
  4703. VW_PUBLIC:
  4704.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4705.     HRESULT Item(long lIndex, CVisioAccelItem FAR &rWrap);
  4706.     HRESULT Add(CVisioAccelItem FAR &rWrap);
  4707.     HRESULT Count(long FAR *lpRet);
  4708.     HRESULT Parent(CVisioAccelTable FAR &rWrap);
  4709. };
  4710.  
  4711.  
  4712. //  ***************************************************************************
  4713. //  Declaration of class CVisioAccelTable
  4714.  
  4715. class FAR CVisioAccelTable : public CVisioUnknown
  4716. {
  4717. VW_PUBLIC:
  4718.     CVisioAccelTable()
  4719.         : CVisioUnknown() { }
  4720.  
  4721.     CVisioAccelTable(const CVisioAccelTable& other)
  4722.         : CVisioUnknown(other) { }
  4723.  
  4724.     CVisioAccelTable(const IVAccelTable FAR * other, BOOL bAssumeResponsibility= FALSE)
  4725.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4726.  
  4727.     const CVisioAccelTable FAR & operator=(const CVisioAccelTable FAR &other)
  4728.         {
  4729.         if ( &other != this )
  4730.             CopyIP(other.GetUnknown());
  4731.  
  4732.         return *this;
  4733.         }
  4734.  
  4735.     const CVisioAccelTable FAR & operator=(const IVAccelTable FAR * other)
  4736.         {
  4737.         if ( (LPUNKNOWN)other != GetUnknown() )
  4738.             CopyIP((LPUNKNOWN)other);
  4739.  
  4740.         return *this;
  4741.         }
  4742.  
  4743.     virtual ~CVisioAccelTable() { }
  4744.  
  4745.     IVAccelTable FAR * GetIP() const { return (IVAccelTable FAR *) GetUnknown(); }
  4746.  
  4747.     operator IVAccelTable FAR * () { return (IVAccelTable FAR *) GetUnknown(); }
  4748.  
  4749. VW_PUBLIC:
  4750.     HRESULT Delete();
  4751.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4752.     HRESULT putTableName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4753.     HRESULT getTableName(BSTR_HELPER_CLASS FAR &rWrap);
  4754.     HRESULT SetID(long FAR *lpRet);
  4755.     HRESULT AccelItems(CVisioAccelItems FAR &rWrap);
  4756.     HRESULT Parent(CVisioAccelTables FAR &rWrap);
  4757. };
  4758.  
  4759.  
  4760. //  ***************************************************************************
  4761. //  Declaration of class CVisioIEnumVAccelTable
  4762.  
  4763. class FAR CVisioIEnumVAccelTable : public CVisioUnknown
  4764. {
  4765. VW_PUBLIC:
  4766.     CVisioIEnumVAccelTable()
  4767.         : CVisioUnknown() { }
  4768.  
  4769.     CVisioIEnumVAccelTable(const CVisioIEnumVAccelTable& other)
  4770.         : CVisioUnknown(other) { }
  4771.  
  4772.     CVisioIEnumVAccelTable(const IEnumVAccelTable FAR * other, BOOL bAssumeResponsibility= FALSE)
  4773.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4774.  
  4775.     const CVisioIEnumVAccelTable FAR & operator=(const CVisioIEnumVAccelTable FAR &other)
  4776.         {
  4777.         if ( &other != this )
  4778.             CopyIP(other.GetUnknown());
  4779.  
  4780.         return *this;
  4781.         }
  4782.  
  4783.     const CVisioIEnumVAccelTable FAR & operator=(const IEnumVAccelTable FAR * other)
  4784.         {
  4785.         if ( (LPUNKNOWN)other != GetUnknown() )
  4786.             CopyIP((LPUNKNOWN)other);
  4787.  
  4788.         return *this;
  4789.         }
  4790.  
  4791.     virtual ~CVisioIEnumVAccelTable() { }
  4792.  
  4793.     IEnumVAccelTable FAR * GetIP() const { return (IEnumVAccelTable FAR *) GetUnknown(); }
  4794.  
  4795.     operator IEnumVAccelTable FAR * () { return (IEnumVAccelTable FAR *) GetUnknown(); }
  4796.  
  4797. VW_PUBLIC:
  4798. #if 0
  4799.     //  This method list provided for information only...
  4800.     HRESULT Next(long celt, CVisioAccelTable FAR &rgelt, long FAR *pceltFetched, HRESULT FAR *lpRet);
  4801.     HRESULT Skip(long celt, HRESULT FAR *lpRet);
  4802.     HRESULT Reset(HRESULT FAR *lpRet);
  4803.     HRESULT Clone(IEnumVAccelTable FAR * FAR *ppenm, HRESULT FAR *lpRet);
  4804. #endif  //  0
  4805. };
  4806.  
  4807.  
  4808. //  ***************************************************************************
  4809. //  Declaration of class CVisioAccelTables
  4810.  
  4811. class FAR CVisioAccelTables : public CVisioUnknown
  4812. {
  4813. VW_PUBLIC:
  4814.     CVisioAccelTables()
  4815.         : CVisioUnknown() { }
  4816.  
  4817.     CVisioAccelTables(const CVisioAccelTables& other)
  4818.         : CVisioUnknown(other) { }
  4819.  
  4820.     CVisioAccelTables(const IVAccelTables FAR * other, BOOL bAssumeResponsibility= FALSE)
  4821.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4822.  
  4823.     const CVisioAccelTables FAR & operator=(const CVisioAccelTables FAR &other)
  4824.         {
  4825.         if ( &other != this )
  4826.             CopyIP(other.GetUnknown());
  4827.  
  4828.         return *this;
  4829.         }
  4830.  
  4831.     const CVisioAccelTables FAR & operator=(const IVAccelTables FAR * other)
  4832.         {
  4833.         if ( (LPUNKNOWN)other != GetUnknown() )
  4834.             CopyIP((LPUNKNOWN)other);
  4835.  
  4836.         return *this;
  4837.         }
  4838.  
  4839.     virtual ~CVisioAccelTables() { }
  4840.  
  4841.     IVAccelTables FAR * GetIP() const { return (IVAccelTables FAR *) GetUnknown(); }
  4842.  
  4843.     operator IVAccelTables FAR * () { return (IVAccelTables FAR *) GetUnknown(); }
  4844.  
  4845. VW_PUBLIC:
  4846.     HRESULT _NewEnum(IUnknown FAR *FAR *lpRet);
  4847.     HRESULT Item(long lIndex, CVisioAccelTable FAR &rWrap);
  4848.     HRESULT ItemAtID(long lID, CVisioAccelTable FAR &rWrap);
  4849.     HRESULT Add(CVisioAccelTable FAR &rWrap);
  4850.     HRESULT AddAtID(long lID, CVisioAccelTable FAR &rWrap);
  4851.     HRESULT Count(long FAR *lpRet);
  4852.     HRESULT Parent(CVisioUIObject FAR &rWrap);
  4853. };
  4854.  
  4855.  
  4856. //  ***************************************************************************
  4857. //  Declaration of class CVisioUIObject
  4858.  
  4859. class FAR CVisioUIObject : public CVisioUnknown
  4860. {
  4861. VW_PUBLIC:
  4862.     CVisioUIObject()
  4863.         : CVisioUnknown() { }
  4864.  
  4865.     CVisioUIObject(const CVisioUIObject& other)
  4866.         : CVisioUnknown(other) { }
  4867.  
  4868.     CVisioUIObject(const IVUIObject FAR * other, BOOL bAssumeResponsibility= FALSE)
  4869.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4870.  
  4871.     const CVisioUIObject FAR & operator=(const CVisioUIObject FAR &other)
  4872.         {
  4873.         if ( &other != this )
  4874.             CopyIP(other.GetUnknown());
  4875.  
  4876.         return *this;
  4877.         }
  4878.  
  4879.     const CVisioUIObject FAR & operator=(const IVUIObject FAR * other)
  4880.         {
  4881.         if ( (LPUNKNOWN)other != GetUnknown() )
  4882.             CopyIP((LPUNKNOWN)other);
  4883.  
  4884.         return *this;
  4885.         }
  4886.  
  4887.     virtual ~CVisioUIObject() { }
  4888.  
  4889.     IVUIObject FAR * GetIP() const { return (IVUIObject FAR *) GetUnknown(); }
  4890.  
  4891.     operator IVUIObject FAR * () { return (IVUIObject FAR *) GetUnknown(); }
  4892.  
  4893. VW_PUBLIC:
  4894.     HRESULT Delete();
  4895.     HRESULT Default(BSTR_HELPER_CLASS FAR &rWrap);
  4896.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4897.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  4898.     HRESULT putFlavor(VW_CONST short param01);
  4899.     HRESULT getFlavor(short FAR *lpRet);
  4900.     HRESULT MenuSets(CVisioMenuSets FAR &rWrap);
  4901.     HRESULT ToolbarSets(CVisioToolbarSets FAR &rWrap);
  4902.     HRESULT StatusBars(CVisioStatusBars FAR &rWrap);
  4903.     HRESULT AccelTables(CVisioAccelTables FAR &rWrap);
  4904.     HRESULT SaveToFile(BSTR_HELPER_CLASS FAR &FileName);
  4905.     HRESULT LoadFromFile(BSTR_HELPER_CLASS FAR &FileName);
  4906.     HRESULT UpdateUI();
  4907. };
  4908.  
  4909.  
  4910. //  ***************************************************************************
  4911. //  Declaration of class CVisioHyperlink
  4912.  
  4913. class FAR CVisioHyperlink : public CVisioUnknown
  4914. {
  4915. VW_PUBLIC:
  4916.     CVisioHyperlink()
  4917.         : CVisioUnknown() { }
  4918.  
  4919.     CVisioHyperlink(const CVisioHyperlink& other)
  4920.         : CVisioUnknown(other) { }
  4921.  
  4922.     CVisioHyperlink(const IVHyperlink FAR * other, BOOL bAssumeResponsibility= FALSE)
  4923.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4924.  
  4925.     const CVisioHyperlink FAR & operator=(const CVisioHyperlink FAR &other)
  4926.         {
  4927.         if ( &other != this )
  4928.             CopyIP(other.GetUnknown());
  4929.  
  4930.         return *this;
  4931.         }
  4932.  
  4933.     const CVisioHyperlink FAR & operator=(const IVHyperlink FAR * other)
  4934.         {
  4935.         if ( (LPUNKNOWN)other != GetUnknown() )
  4936.             CopyIP((LPUNKNOWN)other);
  4937.  
  4938.         return *this;
  4939.         }
  4940.  
  4941.     virtual ~CVisioHyperlink() { }
  4942.  
  4943.     IVHyperlink FAR * GetIP() const { return (IVHyperlink FAR *) GetUnknown(); }
  4944.  
  4945.     operator IVHyperlink FAR * () { return (IVHyperlink FAR *) GetUnknown(); }
  4946.  
  4947. VW_PUBLIC:
  4948.     HRESULT getDescription(BSTR_HELPER_CLASS FAR &rWrap);
  4949.     HRESULT putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4950.     HRESULT Application(CVisioApplication FAR &rWrap);
  4951.     HRESULT Shape(CVisioShape FAR &rWrap);
  4952.     HRESULT ObjectType(short FAR *lpRet);
  4953.     HRESULT Stat(short FAR *lpRet);
  4954.     HRESULT getAddress(BSTR_HELPER_CLASS FAR &rWrap);
  4955.     HRESULT putAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4956.     HRESULT getSubAddress(BSTR_HELPER_CLASS FAR &rWrap);
  4957.     HRESULT putSubAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4958.     HRESULT getNewWindow(short FAR *lpRet);
  4959.     HRESULT putNewWindow(VW_CONST short param01);
  4960.     HRESULT getExtraInfo(BSTR_HELPER_CLASS FAR &rWrap);
  4961.     HRESULT putExtraInfo(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4962.     HRESULT getFrame(BSTR_HELPER_CLASS FAR &rWrap);
  4963.     HRESULT putFrame(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4964.     HRESULT AddToFavorites(VARIANT_HELPER_CLASS FAR &FavoritesTitle);
  4965.     HRESULT Follow();
  4966.     HRESULT Delete();
  4967.     HRESULT Copy();
  4968.     HRESULT CreateURL(short CanonicalForm, BSTR_HELPER_CLASS FAR &rWrap);
  4969. };
  4970.  
  4971.  
  4972. //  ***************************************************************************
  4973. //  Declaration of class CVisioOLEObjects
  4974.  
  4975. class FAR CVisioOLEObjects : public CVisioUnknown
  4976. {
  4977. VW_PUBLIC:
  4978.     CVisioOLEObjects()
  4979.         : CVisioUnknown() { }
  4980.  
  4981.     CVisioOLEObjects(const CVisioOLEObjects& other)
  4982.         : CVisioUnknown(other) { }
  4983.  
  4984.     CVisioOLEObjects(const IVOLEObjects FAR * other, BOOL bAssumeResponsibility= FALSE)
  4985.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4986.  
  4987.     const CVisioOLEObjects FAR & operator=(const CVisioOLEObjects FAR &other)
  4988.         {
  4989.         if ( &other != this )
  4990.             CopyIP(other.GetUnknown());
  4991.  
  4992.         return *this;
  4993.         }
  4994.  
  4995.     const CVisioOLEObjects FAR & operator=(const IVOLEObjects FAR * other)
  4996.         {
  4997.         if ( (LPUNKNOWN)other != GetUnknown() )
  4998.             CopyIP((LPUNKNOWN)other);
  4999.  
  5000.         return *this;
  5001.         }
  5002.  
  5003.     virtual ~CVisioOLEObjects() { }
  5004.  
  5005.     IVOLEObjects FAR * GetIP() const { return (IVOLEObjects FAR *) GetUnknown(); }
  5006.  
  5007.     operator IVOLEObjects FAR * () { return (IVOLEObjects FAR *) GetUnknown(); }
  5008.  
  5009. VW_PUBLIC:
  5010.     HRESULT Application(CVisioApplication FAR &rWrap);
  5011.     HRESULT ObjectType(short FAR *lpRet);
  5012.     HRESULT Stat(short FAR *lpRet);
  5013.     HRESULT Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioOLEObject FAR &rWrap);
  5014.     HRESULT Count(short FAR *lpRet);
  5015. };
  5016.  
  5017.  
  5018. //  ***************************************************************************
  5019. //  Declaration of class CVisioOLEObject
  5020.  
  5021. class FAR CVisioOLEObject : public CVisioUnknown
  5022. {
  5023. VW_PUBLIC:
  5024.     CVisioOLEObject()
  5025.         : CVisioUnknown() { }
  5026.  
  5027.     CVisioOLEObject(const CVisioOLEObject& other)
  5028.         : CVisioUnknown(other) { }
  5029.  
  5030.     CVisioOLEObject(const IVOLEObject FAR * other, BOOL bAssumeResponsibility= FALSE)
  5031.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5032.  
  5033.     const CVisioOLEObject FAR & operator=(const CVisioOLEObject FAR &other)
  5034.         {
  5035.         if ( &other != this )
  5036.             CopyIP(other.GetUnknown());
  5037.  
  5038.         return *this;
  5039.         }
  5040.  
  5041.     const CVisioOLEObject FAR & operator=(const IVOLEObject FAR * other)
  5042.         {
  5043.         if ( (LPUNKNOWN)other != GetUnknown() )
  5044.             CopyIP((LPUNKNOWN)other);
  5045.  
  5046.         return *this;
  5047.         }
  5048.  
  5049.     virtual ~CVisioOLEObject() { }
  5050.  
  5051.     IVOLEObject FAR * GetIP() const { return (IVOLEObject FAR *) GetUnknown(); }
  5052.  
  5053.     operator IVOLEObject FAR * () { return (IVOLEObject FAR *) GetUnknown(); }
  5054.  
  5055. VW_PUBLIC:
  5056.     HRESULT Application(CVisioApplication FAR &rWrap);
  5057.     HRESULT Shape(CVisioShape FAR &rWrap);
  5058.     HRESULT ObjectType(short FAR *lpRet);
  5059.     HRESULT Stat(short FAR *lpRet);
  5060.     HRESULT ClassID(BSTR_HELPER_CLASS FAR &rWrap);
  5061.     HRESULT ProgID(BSTR_HELPER_CLASS FAR &rWrap);
  5062.     HRESULT ForeignType(short FAR *lpRet);
  5063.     HRESULT Object(IDispatch FAR *FAR *lpRet);
  5064. };
  5065.  
  5066.  
  5067. //  ***************************************************************************
  5068. //  Declaration of class CVisioPaths
  5069.  
  5070. class FAR CVisioPaths : public CVisioUnknown
  5071. {
  5072. VW_PUBLIC:
  5073.     CVisioPaths()
  5074.         : CVisioUnknown() { }
  5075.  
  5076.     CVisioPaths(const CVisioPaths& other)
  5077.         : CVisioUnknown(other) { }
  5078.  
  5079.     CVisioPaths(const IVPaths FAR * other, BOOL bAssumeResponsibility= FALSE)
  5080.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5081.  
  5082.     const CVisioPaths FAR & operator=(const CVisioPaths FAR &other)
  5083.         {
  5084.         if ( &other != this )
  5085.             CopyIP(other.GetUnknown());
  5086.  
  5087.         return *this;
  5088.         }
  5089.  
  5090.     const CVisioPaths FAR & operator=(const IVPaths FAR * other)
  5091.         {
  5092.         if ( (LPUNKNOWN)other != GetUnknown() )
  5093.             CopyIP((LPUNKNOWN)other);
  5094.  
  5095.         return *this;
  5096.         }
  5097.  
  5098.     virtual ~CVisioPaths() { }
  5099.  
  5100.     IVPaths FAR * GetIP() const { return (IVPaths FAR *) GetUnknown(); }
  5101.  
  5102.     operator IVPaths FAR * () { return (IVPaths FAR *) GetUnknown(); }
  5103.  
  5104. VW_PUBLIC:
  5105.     HRESULT Application(CVisioApplication FAR &rWrap);
  5106.     HRESULT ObjectType(short FAR *lpRet);
  5107.     HRESULT Item(short Index, CVisioPath FAR &rWrap);
  5108.     HRESULT Count(short FAR *lpRet);
  5109. };
  5110.  
  5111.  
  5112. //  ***************************************************************************
  5113. //  Declaration of class CVisioPath
  5114.  
  5115. class FAR CVisioPath : public CVisioUnknown
  5116. {
  5117. VW_PUBLIC:
  5118.     CVisioPath()
  5119.         : CVisioUnknown() { }
  5120.  
  5121.     CVisioPath(const CVisioPath& other)
  5122.         : CVisioUnknown(other) { }
  5123.  
  5124.     CVisioPath(const IVPath FAR * other, BOOL bAssumeResponsibility= FALSE)
  5125.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5126.  
  5127.     const CVisioPath FAR & operator=(const CVisioPath FAR &other)
  5128.         {
  5129.         if ( &other != this )
  5130.             CopyIP(other.GetUnknown());
  5131.  
  5132.         return *this;
  5133.         }
  5134.  
  5135.     const CVisioPath FAR & operator=(const IVPath FAR * other)
  5136.         {
  5137.         if ( (LPUNKNOWN)other != GetUnknown() )
  5138.             CopyIP((LPUNKNOWN)other);
  5139.  
  5140.         return *this;
  5141.         }
  5142.  
  5143.     virtual ~CVisioPath() { }
  5144.  
  5145.     IVPath FAR * GetIP() const { return (IVPath FAR *) GetUnknown(); }
  5146.  
  5147.     operator IVPath FAR * () { return (IVPath FAR *) GetUnknown(); }
  5148.  
  5149. VW_PUBLIC:
  5150.     HRESULT Application(CVisioApplication FAR &rWrap);
  5151.     HRESULT ObjectType(short FAR *lpRet);
  5152.     HRESULT Item(short Index, CVisioCurve FAR &rWrap);
  5153.     HRESULT Count(short FAR *lpRet);
  5154.     HRESULT Closed(short FAR *lpRet);
  5155.     HRESULT Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray);
  5156. };
  5157.  
  5158.  
  5159. //  ***************************************************************************
  5160. //  Declaration of class CVisioCurve
  5161.  
  5162. class FAR CVisioCurve : public CVisioUnknown
  5163. {
  5164. VW_PUBLIC:
  5165.     CVisioCurve()
  5166.         : CVisioUnknown() { }
  5167.  
  5168.     CVisioCurve(const CVisioCurve& other)
  5169.         : CVisioUnknown(other) { }
  5170.  
  5171.     CVisioCurve(const IVCurve FAR * other, BOOL bAssumeResponsibility= FALSE)
  5172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5173.  
  5174.     const CVisioCurve FAR & operator=(const CVisioCurve FAR &other)
  5175.         {
  5176.         if ( &other != this )
  5177.             CopyIP(other.GetUnknown());
  5178.  
  5179.         return *this;
  5180.         }
  5181.  
  5182.     const CVisioCurve FAR & operator=(const IVCurve FAR * other)
  5183.         {
  5184.         if ( (LPUNKNOWN)other != GetUnknown() )
  5185.             CopyIP((LPUNKNOWN)other);
  5186.  
  5187.         return *this;
  5188.         }
  5189.  
  5190.     virtual ~CVisioCurve() { }
  5191.  
  5192.     IVCurve FAR * GetIP() const { return (IVCurve FAR *) GetUnknown(); }
  5193.  
  5194.     operator IVCurve FAR * () { return (IVCurve FAR *) GetUnknown(); }
  5195.  
  5196. VW_PUBLIC:
  5197.     HRESULT Application(CVisioApplication FAR &rWrap);
  5198.     HRESULT ObjectType(short FAR *lpRet);
  5199.     HRESULT Closed(short FAR *lpRet);
  5200.     HRESULT Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray);
  5201.     HRESULT Start(double FAR *lpRet);
  5202.     HRESULT End(double FAR *lpRet);
  5203.     HRESULT Point(double t, double FAR *x, double FAR *y);
  5204.     HRESULT PointAndDerivatives(double t, short n, double FAR *x, double FAR *y, double FAR *dxdt, double FAR *dydt, double FAR *ddxdt, double FAR *ddydt);
  5205. };
  5206.  
  5207.  
  5208. //  ***************************************************************************
  5209. //  Declaration of class CVisioExtender
  5210.  
  5211. class FAR CVisioExtender : public CVisioUnknown
  5212. {
  5213. VW_PUBLIC:
  5214.     CVisioExtender()
  5215.         : CVisioUnknown() { }
  5216.  
  5217.     CVisioExtender(const CVisioExtender& other)
  5218.         : CVisioUnknown(other) { }
  5219.  
  5220.     CVisioExtender(const IVExtender FAR * other, BOOL bAssumeResponsibility= FALSE)
  5221.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5222.  
  5223.     const CVisioExtender FAR & operator=(const CVisioExtender FAR &other)
  5224.         {
  5225.         if ( &other != this )
  5226.             CopyIP(other.GetUnknown());
  5227.  
  5228.         return *this;
  5229.         }
  5230.  
  5231.     const CVisioExtender FAR & operator=(const IVExtender FAR * other)
  5232.         {
  5233.         if ( (LPUNKNOWN)other != GetUnknown() )
  5234.             CopyIP((LPUNKNOWN)other);
  5235.  
  5236.         return *this;
  5237.         }
  5238.  
  5239.     virtual ~CVisioExtender() { }
  5240.  
  5241.     IVExtender FAR * GetIP() const { return (IVExtender FAR *) GetUnknown(); }
  5242.  
  5243.     operator IVExtender FAR * () { return (IVExtender FAR *) GetUnknown(); }
  5244.  
  5245. VW_PUBLIC:
  5246.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  5247.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5248.     HRESULT Object(IUnknown FAR *FAR *lpRet);
  5249.     HRESULT Parent(IUnknown FAR *FAR *lpRet);
  5250.     HRESULT Delete();
  5251.     HRESULT Index();
  5252.     HRESULT Shape(CVisioShape FAR &rWrap);
  5253.     HRESULT Group();
  5254.     HRESULT BringForward();
  5255.     HRESULT BringToFront();
  5256.     HRESULT ConvertToGroup();
  5257.     HRESULT SendBackward();
  5258.     HRESULT SendToBack();
  5259.     HRESULT Document(CVisioDocument FAR &rWrap);
  5260.     HRESULT ShapeParent(IDispatch FAR *FAR *lpRet);
  5261.     HRESULT Application(CVisioApplication FAR &rWrap);
  5262.     HRESULT Master(CVisioMaster FAR &rWrap);
  5263.     HRESULT Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap);
  5264.     HRESULT CellsSRC(short Section, short Row, short Column, CVisioCell FAR &rWrap);
  5265.     HRESULT getData1(BSTR_HELPER_CLASS FAR &rWrap);
  5266.     HRESULT putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5267.     HRESULT getData2(BSTR_HELPER_CLASS FAR &rWrap);
  5268.     HRESULT putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5269.     HRESULT getData3(BSTR_HELPER_CLASS FAR &rWrap);
  5270.     HRESULT putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5271.     HRESULT getHelp(BSTR_HELPER_CLASS FAR &rWrap);
  5272.     HRESULT putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5273.     HRESULT NameID(BSTR_HELPER_CLASS FAR &rWrap);
  5274.     HRESULT ShapeCopy();
  5275.     HRESULT ShapeCut();
  5276.     HRESULT ShapeDelete();
  5277.     HRESULT ShapeDuplicate();
  5278.     HRESULT RowCount(short Section, short FAR *lpRet);
  5279.     HRESULT AddSection(short Section, short FAR *lpRet);
  5280.     HRESULT DeleteSection(short Section);
  5281.     HRESULT AddRow(short Section, short Row, short RowTag, short FAR *lpRet);
  5282.     HRESULT DeleteRow(short Section, short Row);
  5283.     HRESULT RowsCellCount(short Section, short Row, short FAR *lpRet);
  5284.     HRESULT getRowType(short Section, short Row, short FAR *lpRet);
  5285.     HRESULT putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  5286.     HRESULT SetCenter(double xPos, double yPos);
  5287.     HRESULT Connects(CVisioConnects FAR &rWrap);
  5288.     HRESULT ShapeIndex(short FAR *lpRet);
  5289.     HRESULT getStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5290.     HRESULT putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5291.     HRESULT StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5292.     HRESULT getLineStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5293.     HRESULT putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5294.     HRESULT LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5295.     HRESULT getFillStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5296.     HRESULT putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5297.     HRESULT FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5298.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  5299.     HRESULT UniqueID(short fUniqueID, BSTR_HELPER_CLASS FAR &rWrap);
  5300.     HRESULT ContainingPage(CVisioPage FAR &rWrap);
  5301.     HRESULT ContainingMaster(CVisioMaster FAR &rWrap);
  5302.     HRESULT ContainingShape(CVisioShape FAR &rWrap);
  5303.     HRESULT SectionExists(short Section, short fLocalExists, short FAR *lpRet);
  5304.     HRESULT RowExists(short Section, short Row, short fLocalExists, short FAR *lpRet);
  5305.     HRESULT CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists, short FAR *lpRet);
  5306.     HRESULT CellsSRCExists(short Section, short Row, short Column, short fLocalExists, short FAR *lpRet);
  5307.     HRESULT LayerCount(short FAR *lpRet);
  5308.     HRESULT Layer(short Index, CVisioLayer FAR &rWrap);
  5309.     HRESULT AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag, short FAR *lpRet);
  5310.     HRESULT AddRows(short Section, short Row, short RowTag, short RowCount, short FAR *lpRet);
  5311.     HRESULT EventList(CVisioEventList FAR &rWrap);
  5312.     HRESULT PersistsEvents(short FAR *lpRet);
  5313.     HRESULT ClassID(BSTR_HELPER_CLASS FAR &rWrap);
  5314.     HRESULT ShapeObject(IDispatch FAR *FAR *lpRet);
  5315.     HRESULT OpenSheetWindow(CVisioWindow FAR &rWrap);
  5316.     HRESULT ShapeID(short FAR *lpRet);
  5317.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  5318.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  5319.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  5320.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  5321.     HRESULT FromConnects(CVisioConnects FAR &rWrap);
  5322.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  5323.     HRESULT HitTest(double xPos, double yPos, double Tolerance, short FAR *lpRet);
  5324.     HRESULT Hyperlink(CVisioHyperlink FAR &rWrap);
  5325.     HRESULT ProgID(BSTR_HELPER_CLASS FAR &rWrap);
  5326.     HRESULT ObjectIsInherited(short FAR *lpRet);
  5327. };
  5328.  
  5329.  
  5330. //  ***************************************************************************
  5331. //  Declaration of class CVisioDispExtender
  5332.  
  5333. class FAR CVisioDispExtender : public CVisioUnknown
  5334. {
  5335. VW_PUBLIC:
  5336.     CVisioDispExtender()
  5337.         : CVisioUnknown() { }
  5338.  
  5339.     CVisioDispExtender(const CVisioDispExtender& other)
  5340.         : CVisioUnknown(other) { }
  5341.  
  5342.     CVisioDispExtender(const IVDispExtender FAR * other, BOOL bAssumeResponsibility= FALSE)
  5343.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5344.  
  5345.     const CVisioDispExtender FAR & operator=(const CVisioDispExtender FAR &other)
  5346.         {
  5347.         if ( &other != this )
  5348.             CopyIP(other.GetUnknown());
  5349.  
  5350.         return *this;
  5351.         }
  5352.  
  5353.     const CVisioDispExtender FAR & operator=(const IVDispExtender FAR * other)
  5354.         {
  5355.         if ( (LPUNKNOWN)other != GetUnknown() )
  5356.             CopyIP((LPUNKNOWN)other);
  5357.  
  5358.         return *this;
  5359.         }
  5360.  
  5361.     virtual ~CVisioDispExtender() { }
  5362.  
  5363.     IVDispExtender FAR * GetIP() const { return (IVDispExtender FAR *) GetUnknown(); }
  5364.  
  5365.     operator IVDispExtender FAR * () { return (IVDispExtender FAR *) GetUnknown(); }
  5366.  
  5367. VW_PUBLIC:
  5368. #if 0
  5369.     //  This method list provided for information only...
  5370.     void QueryInterface(REFIID riid, void FAR * FAR *ppvObj);
  5371.     unsigned long AddRef();
  5372.     unsigned long Release();
  5373.     void GetTypeInfoCount(unsigned long FAR *pctinfo);
  5374.     void GetTypeInfo(unsigned long itinfo, unsigned long lcid, ITypeInfo FAR *FAR *pptinfo);
  5375.     void GetIDsOfNames(REFIID riid, OLECHAR FAR *FAR *rgszNames, unsigned long cNames, unsigned long lcid, long FAR *rgdispid);
  5376.     void Invoke(long dispidMember, REFIID riid, unsigned long lcid, unsigned short wFlags, DISPPARAMS FAR *pdispparams, VARIANT_HELPER_CLASS FAR &pvarResult, EXCEPINFO FAR *pexcepinfo, unsigned long FAR *puArgErr);
  5377.     HRESULT getName(BSTR_HELPER_CLASS FAR &rWrap);
  5378.     HRESULT putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5379.     HRESULT Object(IUnknown FAR *FAR *lpRet);
  5380.     HRESULT Parent(IUnknown FAR *FAR *lpRet);
  5381.     HRESULT Delete();
  5382.     HRESULT Index();
  5383.     HRESULT Shape(CVisioShape FAR &rWrap);
  5384.     HRESULT Group();
  5385.     HRESULT BringForward();
  5386.     HRESULT BringToFront();
  5387.     HRESULT ConvertToGroup();
  5388.     HRESULT SendBackward();
  5389.     HRESULT SendToBack();
  5390.     HRESULT Document(CVisioDocument FAR &rWrap);
  5391.     HRESULT ShapeParent(IDispatch FAR *FAR *lpRet);
  5392.     HRESULT Application(CVisioApplication FAR &rWrap);
  5393.     HRESULT Master(CVisioMaster FAR &rWrap);
  5394.     HRESULT Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap);
  5395.     HRESULT CellsSRC(short Section, short Row, short Column, CVisioCell FAR &rWrap);
  5396.     HRESULT getData1(BSTR_HELPER_CLASS FAR &rWrap);
  5397.     HRESULT putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5398.     HRESULT getData2(BSTR_HELPER_CLASS FAR &rWrap);
  5399.     HRESULT putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5400.     HRESULT getData3(BSTR_HELPER_CLASS FAR &rWrap);
  5401.     HRESULT putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5402.     HRESULT getHelp(BSTR_HELPER_CLASS FAR &rWrap);
  5403.     HRESULT putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5404.     HRESULT NameID(BSTR_HELPER_CLASS FAR &rWrap);
  5405.     HRESULT ShapeCopy();
  5406.     HRESULT ShapeCut();
  5407.     HRESULT ShapeDelete();
  5408.     HRESULT ShapeDuplicate();
  5409.     HRESULT RowCount(short Section, short FAR *lpRet);
  5410.     HRESULT AddSection(short Section, short FAR *lpRet);
  5411.     HRESULT DeleteSection(short Section);
  5412.     HRESULT AddRow(short Section, short Row, short RowTag, short FAR *lpRet);
  5413.     HRESULT DeleteRow(short Section, short Row);
  5414.     HRESULT RowsCellCount(short Section, short Row, short FAR *lpRet);
  5415.     HRESULT getRowType(short Section, short Row, short FAR *lpRet);
  5416.     HRESULT putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  5417.     HRESULT SetCenter(double xPos, double yPos);
  5418.     HRESULT Connects(CVisioConnects FAR &rWrap);
  5419.     HRESULT ShapeIndex(short FAR *lpRet);
  5420.     HRESULT getStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5421.     HRESULT putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5422.     HRESULT StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5423.     HRESULT getLineStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5424.     HRESULT putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5425.     HRESULT LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5426.     HRESULT getFillStyle(BSTR_HELPER_CLASS FAR &rWrap);
  5427.     HRESULT putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5428.     HRESULT FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5429.     HRESULT Export(BSTR_HELPER_CLASS FAR &FileName);
  5430.     HRESULT UniqueID(short fUniqueID, BSTR_HELPER_CLASS FAR &rWrap);
  5431.     HRESULT ContainingPage(CVisioPage FAR &rWrap);
  5432.     HRESULT ContainingMaster(CVisioMaster FAR &rWrap);
  5433.     HRESULT ContainingShape(CVisioShape FAR &rWrap);
  5434.     HRESULT SectionExists(short Section, short fLocalExists, short FAR *lpRet);
  5435.     HRESULT RowExists(short Section, short Row, short fLocalExists, short FAR *lpRet);
  5436.     HRESULT CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists, short FAR *lpRet);
  5437.     HRESULT CellsSRCExists(short Section, short Row, short Column, short fLocalExists, short FAR *lpRet);
  5438.     HRESULT LayerCount(short FAR *lpRet);
  5439.     HRESULT Layer(short Index, CVisioLayer FAR &rWrap);
  5440.     HRESULT AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag, short FAR *lpRet);
  5441.     HRESULT AddRows(short Section, short Row, short RowTag, short RowCount, short FAR *lpRet);
  5442.     HRESULT EventList(CVisioEventList FAR &rWrap);
  5443.     HRESULT PersistsEvents(short FAR *lpRet);
  5444.     HRESULT ClassID(BSTR_HELPER_CLASS FAR &rWrap);
  5445.     HRESULT ShapeObject(IDispatch FAR *FAR *lpRet);
  5446.     HRESULT OpenSheetWindow(CVisioWindow FAR &rWrap);
  5447.     HRESULT ShapeID(short FAR *lpRet);
  5448.     HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  5449.     HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  5450.     HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
  5451.     HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
  5452.     HRESULT FromConnects(CVisioConnects FAR &rWrap);
  5453.     HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  5454.     HRESULT HitTest(double xPos, double yPos, double Tolerance, short FAR *lpRet);
  5455.     HRESULT Hyperlink(CVisioHyperlink FAR &rWrap);
  5456.     HRESULT ProgID(BSTR_HELPER_CLASS FAR &rWrap);
  5457.     HRESULT ObjectIsInherited(short FAR *lpRet);
  5458. #endif  //  0
  5459. };
  5460.  
  5461.  
  5462. //  ***************************************************************************
  5463. //  Declaration of class CVisioAmbients
  5464.  
  5465. class FAR CVisioAmbients : public CVisioUnknown
  5466. {
  5467. VW_PUBLIC:
  5468.     CVisioAmbients()
  5469.         : CVisioUnknown() { }
  5470.  
  5471.     CVisioAmbients(const CVisioAmbients& other)
  5472.         : CVisioUnknown(other) { }
  5473.  
  5474.     CVisioAmbients(const IVAmbients FAR * other, BOOL bAssumeResponsibility= FALSE)
  5475.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5476.  
  5477.     const CVisioAmbients FAR & operator=(const CVisioAmbients FAR &other)
  5478.         {
  5479.         if ( &other != this )
  5480.             CopyIP(other.GetUnknown());
  5481.  
  5482.         return *this;
  5483.         }
  5484.  
  5485.     const CVisioAmbients FAR & operator=(const IVAmbients FAR * other)
  5486.         {
  5487.         if ( (LPUNKNOWN)other != GetUnknown() )
  5488.             CopyIP((LPUNKNOWN)other);
  5489.  
  5490.         return *this;
  5491.         }
  5492.  
  5493.     virtual ~CVisioAmbients() { }
  5494.  
  5495.     IVAmbients FAR * GetIP() const { return (IVAmbients FAR *) GetUnknown(); }
  5496.  
  5497.     operator IVAmbients FAR * () { return (IVAmbients FAR *) GetUnknown(); }
  5498.  
  5499. VW_PUBLIC:
  5500.     HRESULT BackColor(long FAR *lpRet);
  5501.     HRESULT DisplayName(BSTR_HELPER_CLASS FAR &rWrap);
  5502.     HRESULT Font(IDispatch FAR *FAR *lpRet);
  5503.     HRESULT ForeColor(long FAR *lpRet);
  5504.     HRESULT LocaleID(long FAR *lpRet);
  5505.     HRESULT MessageReflect(VARIANT_BOOL FAR *lpRet);
  5506.     HRESULT ScaleUnits(BSTR_HELPER_CLASS FAR &rWrap);
  5507.     HRESULT TextAlign(short FAR *lpRet);
  5508.     HRESULT UserMode(VARIANT_BOOL FAR *lpRet);
  5509.     HRESULT UIDead(VARIANT_BOOL FAR *lpRet);
  5510.     HRESULT ShowGrabHandles(VARIANT_BOOL FAR *lpRet);
  5511.     HRESULT ShowHatching(VARIANT_BOOL FAR *lpRet);
  5512.     HRESULT DisplayAsDefault(VARIANT_BOOL FAR *lpRet);
  5513.     HRESULT SupportsMnemonics(VARIANT_BOOL FAR *lpRet);
  5514.     HRESULT AutoClip(VARIANT_BOOL FAR *lpRet);
  5515.     HRESULT Appearance(long FAR *lpRet);
  5516. };
  5517.  
  5518.  
  5519. //  ***************************************************************************
  5520. //  TypeLib Interface class implementations
  5521.  
  5522. //  ***************************************************************************
  5523. //  Implementation of class CVisioApplication
  5524.  
  5525. VW_INLINE HRESULT CVisioApplication::ActiveDocument(CVisioDocument FAR &rWrap)
  5526. {
  5527.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5528.     IVDocument FAR *lpObj= NULL;
  5529.  
  5530.     CHECK_IP(GetIP(), CVisioApplication, ActiveDocument);
  5531.     if (NULL!=GetIP())
  5532.         hr= GetIP()->get_ActiveDocument(&lpObj);
  5533.     CHECK_HRESULT(hr, CVisioApplication, ActiveDocument);
  5534.  
  5535.     rWrap= lpObj;
  5536.     if (NULL!=lpObj)
  5537.         lpObj->Release();
  5538.  
  5539.     return hr;
  5540. }
  5541.  
  5542.  
  5543. VW_INLINE HRESULT CVisioApplication::ActivePage(CVisioPage FAR &rWrap)
  5544. {
  5545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5546.     IVPage FAR *lpObj= NULL;
  5547.  
  5548.     CHECK_IP(GetIP(), CVisioApplication, ActivePage);
  5549.     if (NULL!=GetIP())
  5550.         hr= GetIP()->get_ActivePage(&lpObj);
  5551.     CHECK_HRESULT(hr, CVisioApplication, ActivePage);
  5552.  
  5553.     rWrap= lpObj;
  5554.     if (NULL!=lpObj)
  5555.         lpObj->Release();
  5556.  
  5557.     return hr;
  5558. }
  5559.  
  5560.  
  5561. VW_INLINE HRESULT CVisioApplication::ActiveWindow(CVisioWindow FAR &rWrap)
  5562. {
  5563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5564.     IVWindow FAR *lpObj= NULL;
  5565.  
  5566.     CHECK_IP(GetIP(), CVisioApplication, ActiveWindow);
  5567.     if (NULL!=GetIP())
  5568.         hr= GetIP()->get_ActiveWindow(&lpObj);
  5569.     CHECK_HRESULT(hr, CVisioApplication, ActiveWindow);
  5570.  
  5571.     rWrap= lpObj;
  5572.     if (NULL!=lpObj)
  5573.         lpObj->Release();
  5574.  
  5575.     return hr;
  5576. }
  5577.  
  5578.  
  5579. VW_INLINE HRESULT CVisioApplication::Application(CVisioApplication FAR &rWrap)
  5580. {
  5581.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5582.     IVApplication FAR *lpObj= NULL;
  5583.  
  5584.     CHECK_IP(GetIP(), CVisioApplication, Application);
  5585.     if (NULL!=GetIP())
  5586.         hr= GetIP()->get_Application(&lpObj);
  5587.     CHECK_HRESULT(hr, CVisioApplication, Application);
  5588.  
  5589.     rWrap= lpObj;
  5590.     if (NULL!=lpObj)
  5591.         lpObj->Release();
  5592.  
  5593.     return hr;
  5594. }
  5595.  
  5596.  
  5597. VW_INLINE HRESULT CVisioApplication::Documents(CVisioDocuments FAR &rWrap)
  5598. {
  5599.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5600.     IVDocuments FAR *lpObj= NULL;
  5601.  
  5602.     CHECK_IP(GetIP(), CVisioApplication, Documents);
  5603.     if (NULL!=GetIP())
  5604.         hr= GetIP()->get_Documents(&lpObj);
  5605.     CHECK_HRESULT(hr, CVisioApplication, Documents);
  5606.  
  5607.     rWrap= lpObj;
  5608.     if (NULL!=lpObj)
  5609.         lpObj->Release();
  5610.  
  5611.     return hr;
  5612. }
  5613.  
  5614.  
  5615. VW_INLINE HRESULT CVisioApplication::ObjectType(short FAR *lpRet)
  5616. {
  5617.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5618.     CHECK_IP(GetIP(), CVisioApplication, ObjectType);
  5619.     if (NULL!=GetIP())
  5620.         hr= GetIP()->get_ObjectType(lpRet);
  5621.     CHECK_HRESULT(hr, CVisioApplication, ObjectType);
  5622.     return hr;
  5623. }
  5624.  
  5625.  
  5626. VW_INLINE HRESULT CVisioApplication::getOnDataChangeDelay(long FAR *lpRet)
  5627. {
  5628.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5629.     CHECK_IP(GetIP(), CVisioApplication, getOnDataChangeDelay);
  5630.     if (NULL!=GetIP())
  5631.         hr= GetIP()->get_OnDataChangeDelay(lpRet);
  5632.     CHECK_HRESULT(hr, CVisioApplication, getOnDataChangeDelay);
  5633.     return hr;
  5634. }
  5635.  
  5636.  
  5637. VW_INLINE HRESULT CVisioApplication::putOnDataChangeDelay(VW_CONST long param01)
  5638. {
  5639.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5640.     CHECK_IP(GetIP(), CVisioApplication, putOnDataChangeDelay);
  5641.     if (NULL!=GetIP())
  5642.         hr= GetIP()->put_OnDataChangeDelay(param01);
  5643.     CHECK_HRESULT(hr, CVisioApplication, putOnDataChangeDelay);
  5644.     return hr;
  5645. }
  5646.  
  5647.  
  5648. VW_INLINE HRESULT CVisioApplication::ProcessID(long FAR *lpRet)
  5649. {
  5650.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5651.     CHECK_IP(GetIP(), CVisioApplication, ProcessID);
  5652.     if (NULL!=GetIP())
  5653.         hr= GetIP()->get_ProcessID(lpRet);
  5654.     CHECK_HRESULT(hr, CVisioApplication, ProcessID);
  5655.     return hr;
  5656. }
  5657.  
  5658.  
  5659. VW_INLINE HRESULT CVisioApplication::Quit()
  5660. {
  5661.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5662.     CHECK_IP(GetIP(), CVisioApplication, Quit);
  5663.     if (NULL!=GetIP())
  5664.         hr= GetIP()->Quit();
  5665.     CHECK_HRESULT(hr, CVisioApplication, Quit);
  5666.     return hr;
  5667. }
  5668.  
  5669.  
  5670. VW_INLINE HRESULT CVisioApplication::Redo()
  5671. {
  5672.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5673.     CHECK_IP(GetIP(), CVisioApplication, Redo);
  5674.     if (NULL!=GetIP())
  5675.         hr= GetIP()->Redo();
  5676.     CHECK_HRESULT(hr, CVisioApplication, Redo);
  5677.     return hr;
  5678. }
  5679.  
  5680.  
  5681. VW_INLINE HRESULT CVisioApplication::getScreenUpdating(short FAR *lpRet)
  5682. {
  5683.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5684.     CHECK_IP(GetIP(), CVisioApplication, getScreenUpdating);
  5685.     if (NULL!=GetIP())
  5686.         hr= GetIP()->get_ScreenUpdating(lpRet);
  5687.     CHECK_HRESULT(hr, CVisioApplication, getScreenUpdating);
  5688.     return hr;
  5689. }
  5690.  
  5691.  
  5692. VW_INLINE HRESULT CVisioApplication::putScreenUpdating(VW_CONST short param01)
  5693. {
  5694.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5695.     CHECK_IP(GetIP(), CVisioApplication, putScreenUpdating);
  5696.     if (NULL!=GetIP())
  5697.         hr= GetIP()->put_ScreenUpdating(param01);
  5698.     CHECK_HRESULT(hr, CVisioApplication, putScreenUpdating);
  5699.     return hr;
  5700. }
  5701.  
  5702.  
  5703. VW_INLINE HRESULT CVisioApplication::Stat(short FAR *lpRet)
  5704. {
  5705.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5706.     CHECK_IP(GetIP(), CVisioApplication, Stat);
  5707.     if (NULL!=GetIP())
  5708.         hr= GetIP()->get_Stat(lpRet);
  5709.     CHECK_HRESULT(hr, CVisioApplication, Stat);
  5710.     return hr;
  5711. }
  5712.  
  5713.  
  5714. VW_INLINE HRESULT CVisioApplication::Undo()
  5715. {
  5716.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5717.     CHECK_IP(GetIP(), CVisioApplication, Undo);
  5718.     if (NULL!=GetIP())
  5719.         hr= GetIP()->Undo();
  5720.     CHECK_HRESULT(hr, CVisioApplication, Undo);
  5721.     return hr;
  5722. }
  5723.  
  5724.  
  5725. VW_INLINE HRESULT CVisioApplication::Version(BSTR_HELPER_CLASS FAR &rWrap)
  5726. {
  5727.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5728.     BSTR lpObj= NULL;
  5729.  
  5730.     CHECK_IP(GetIP(), CVisioApplication, Version);
  5731.     if (NULL!=GetIP())
  5732.         hr= GetIP()->get_Version(&lpObj);
  5733.     CHECK_HRESULT(hr, CVisioApplication, Version);
  5734.  
  5735.     rWrap= lpObj;
  5736. #ifndef NO_BSTR_HELPER
  5737.     if (NULL!=lpObj)
  5738.         SysFreeString(lpObj);
  5739. #endif  //  NO_BSTR_HELPER
  5740.  
  5741.     return hr;
  5742. }
  5743.  
  5744.  
  5745. VW_INLINE HRESULT CVisioApplication::WindowHandle(short FAR *lpRet)
  5746. {
  5747.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5748.     CHECK_IP(GetIP(), CVisioApplication, WindowHandle);
  5749.     if (NULL!=GetIP())
  5750.         hr= GetIP()->get_WindowHandle(lpRet);
  5751.     CHECK_HRESULT(hr, CVisioApplication, WindowHandle);
  5752.     return hr;
  5753. }
  5754.  
  5755.  
  5756. VW_INLINE HRESULT CVisioApplication::Windows(CVisioWindows FAR &rWrap)
  5757. {
  5758.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5759.     IVWindows FAR *lpObj= NULL;
  5760.  
  5761.     CHECK_IP(GetIP(), CVisioApplication, Windows);
  5762.     if (NULL!=GetIP())
  5763.         hr= GetIP()->get_Windows(&lpObj);
  5764.     CHECK_HRESULT(hr, CVisioApplication, Windows);
  5765.  
  5766.     rWrap= lpObj;
  5767.     if (NULL!=lpObj)
  5768.         lpObj->Release();
  5769.  
  5770.     return hr;
  5771. }
  5772.  
  5773.  
  5774. VW_INLINE HRESULT CVisioApplication::Language(long FAR *lpRet)
  5775. {
  5776.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5777.     CHECK_IP(GetIP(), CVisioApplication, Language);
  5778.     if (NULL!=GetIP())
  5779.         hr= GetIP()->get_Language(lpRet);
  5780.     CHECK_HRESULT(hr, CVisioApplication, Language);
  5781.     return hr;
  5782. }
  5783.  
  5784.  
  5785. VW_INLINE HRESULT CVisioApplication::IsVisio16(short FAR *lpRet)
  5786. {
  5787.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5788.     CHECK_IP(GetIP(), CVisioApplication, IsVisio16);
  5789.     if (NULL!=GetIP())
  5790.         hr= GetIP()->get_IsVisio16(lpRet);
  5791.     CHECK_HRESULT(hr, CVisioApplication, IsVisio16);
  5792.     return hr;
  5793. }
  5794.  
  5795.  
  5796. VW_INLINE HRESULT CVisioApplication::IsVisio32(short FAR *lpRet)
  5797. {
  5798.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5799.     CHECK_IP(GetIP(), CVisioApplication, IsVisio32);
  5800.     if (NULL!=GetIP())
  5801.         hr= GetIP()->get_IsVisio32(lpRet);
  5802.     CHECK_HRESULT(hr, CVisioApplication, IsVisio32);
  5803.     return hr;
  5804. }
  5805.  
  5806.  
  5807. VW_INLINE HRESULT CVisioApplication::WindowHandle32(long FAR *lpRet)
  5808. {
  5809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5810.     CHECK_IP(GetIP(), CVisioApplication, WindowHandle32);
  5811.     if (NULL!=GetIP())
  5812.         hr= GetIP()->get_WindowHandle32(lpRet);
  5813.     CHECK_HRESULT(hr, CVisioApplication, WindowHandle32);
  5814.     return hr;
  5815. }
  5816.  
  5817.  
  5818. VW_INLINE HRESULT CVisioApplication::InstanceHandle(short FAR *lpRet)
  5819. {
  5820.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5821.     CHECK_IP(GetIP(), CVisioApplication, InstanceHandle);
  5822.     if (NULL!=GetIP())
  5823.         hr= GetIP()->get_InstanceHandle(lpRet);
  5824.     CHECK_HRESULT(hr, CVisioApplication, InstanceHandle);
  5825.     return hr;
  5826. }
  5827.  
  5828.  
  5829. VW_INLINE HRESULT CVisioApplication::InstanceHandle32(long FAR *lpRet)
  5830. {
  5831.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5832.     CHECK_IP(GetIP(), CVisioApplication, InstanceHandle32);
  5833.     if (NULL!=GetIP())
  5834.         hr= GetIP()->get_InstanceHandle32(lpRet);
  5835.     CHECK_HRESULT(hr, CVisioApplication, InstanceHandle32);
  5836.     return hr;
  5837. }
  5838.  
  5839.  
  5840. VW_INLINE HRESULT CVisioApplication::BuiltInMenus(CVisioUIObject FAR &rWrap)
  5841. {
  5842.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5843.     IVUIObject FAR *lpObj= NULL;
  5844.  
  5845.     CHECK_IP(GetIP(), CVisioApplication, BuiltInMenus);
  5846.     if (NULL!=GetIP())
  5847.         hr= GetIP()->get_BuiltInMenus(&lpObj);
  5848.     CHECK_HRESULT(hr, CVisioApplication, BuiltInMenus);
  5849.  
  5850.     rWrap= lpObj;
  5851.     if (NULL!=lpObj)
  5852.         lpObj->Release();
  5853.  
  5854.     return hr;
  5855. }
  5856.  
  5857.  
  5858. VW_INLINE HRESULT CVisioApplication::BuiltInToolbars(short fIgnored, CVisioUIObject FAR &rWrap)
  5859. {
  5860.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5861.     IVUIObject FAR *lpObj= NULL;
  5862.  
  5863.     CHECK_IP(GetIP(), CVisioApplication, BuiltInToolbars);
  5864.     if (NULL!=GetIP())
  5865.         hr= GetIP()->get_BuiltInToolbars(fIgnored, &lpObj);
  5866.     CHECK_HRESULT(hr, CVisioApplication, BuiltInToolbars);
  5867.  
  5868.     rWrap= lpObj;
  5869.     if (NULL!=lpObj)
  5870.         lpObj->Release();
  5871.  
  5872.     return hr;
  5873. }
  5874.  
  5875.  
  5876. VW_INLINE HRESULT CVisioApplication::CustomMenus(CVisioUIObject FAR &rWrap)
  5877. {
  5878.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5879.     IVUIObject FAR *lpObj= NULL;
  5880.  
  5881.     CHECK_IP(GetIP(), CVisioApplication, CustomMenus);
  5882.     if (NULL!=GetIP())
  5883.         hr= GetIP()->get_CustomMenus(&lpObj);
  5884.     CHECK_HRESULT(hr, CVisioApplication, CustomMenus);
  5885.  
  5886.     rWrap= lpObj;
  5887.     if (NULL!=lpObj)
  5888.         lpObj->Release();
  5889.  
  5890.     return hr;
  5891. }
  5892.  
  5893.  
  5894. VW_INLINE HRESULT CVisioApplication::SetCustomMenus(CVisioUIObject FAR &MenusObject)
  5895. {
  5896.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5897.     CHECK_IP(GetIP(), CVisioApplication, SetCustomMenus);
  5898.     if (NULL!=GetIP())
  5899.         hr= GetIP()->SetCustomMenus(MenusObject);
  5900.     CHECK_HRESULT(hr, CVisioApplication, SetCustomMenus);
  5901.     return hr;
  5902. }
  5903.  
  5904.  
  5905. VW_INLINE HRESULT CVisioApplication::getCustomMenusFile(BSTR_HELPER_CLASS FAR &rWrap)
  5906. {
  5907.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5908.     BSTR lpObj= NULL;
  5909.  
  5910.     CHECK_IP(GetIP(), CVisioApplication, getCustomMenusFile);
  5911.     if (NULL!=GetIP())
  5912.         hr= GetIP()->get_CustomMenusFile(&lpObj);
  5913.     CHECK_HRESULT(hr, CVisioApplication, getCustomMenusFile);
  5914.  
  5915.     rWrap= lpObj;
  5916. #ifndef NO_BSTR_HELPER
  5917.     if (NULL!=lpObj)
  5918.         SysFreeString(lpObj);
  5919. #endif  //  NO_BSTR_HELPER
  5920.  
  5921.     return hr;
  5922. }
  5923.  
  5924.  
  5925. VW_INLINE HRESULT CVisioApplication::putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5926. {
  5927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5928.     CHECK_IP(GetIP(), CVisioApplication, putCustomMenusFile);
  5929.     if (NULL!=GetIP())
  5930.         hr= GetIP()->put_CustomMenusFile(param01);
  5931.     CHECK_HRESULT(hr, CVisioApplication, putCustomMenusFile);
  5932.     return hr;
  5933. }
  5934.  
  5935.  
  5936. VW_INLINE HRESULT CVisioApplication::ClearCustomMenus()
  5937. {
  5938.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5939.     CHECK_IP(GetIP(), CVisioApplication, ClearCustomMenus);
  5940.     if (NULL!=GetIP())
  5941.         hr= GetIP()->ClearCustomMenus();
  5942.     CHECK_HRESULT(hr, CVisioApplication, ClearCustomMenus);
  5943.     return hr;
  5944. }
  5945.  
  5946.  
  5947. VW_INLINE HRESULT CVisioApplication::CustomToolbars(CVisioUIObject FAR &rWrap)
  5948. {
  5949.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5950.     IVUIObject FAR *lpObj= NULL;
  5951.  
  5952.     CHECK_IP(GetIP(), CVisioApplication, CustomToolbars);
  5953.     if (NULL!=GetIP())
  5954.         hr= GetIP()->get_CustomToolbars(&lpObj);
  5955.     CHECK_HRESULT(hr, CVisioApplication, CustomToolbars);
  5956.  
  5957.     rWrap= lpObj;
  5958.     if (NULL!=lpObj)
  5959.         lpObj->Release();
  5960.  
  5961.     return hr;
  5962. }
  5963.  
  5964.  
  5965. VW_INLINE HRESULT CVisioApplication::SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject)
  5966. {
  5967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5968.     CHECK_IP(GetIP(), CVisioApplication, SetCustomToolbars);
  5969.     if (NULL!=GetIP())
  5970.         hr= GetIP()->SetCustomToolbars(ToolbarsObject);
  5971.     CHECK_HRESULT(hr, CVisioApplication, SetCustomToolbars);
  5972.     return hr;
  5973. }
  5974.  
  5975.  
  5976. VW_INLINE HRESULT CVisioApplication::getCustomToolbarsFile(BSTR_HELPER_CLASS FAR &rWrap)
  5977. {
  5978.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5979.     BSTR lpObj= NULL;
  5980.  
  5981.     CHECK_IP(GetIP(), CVisioApplication, getCustomToolbarsFile);
  5982.     if (NULL!=GetIP())
  5983.         hr= GetIP()->get_CustomToolbarsFile(&lpObj);
  5984.     CHECK_HRESULT(hr, CVisioApplication, getCustomToolbarsFile);
  5985.  
  5986.     rWrap= lpObj;
  5987. #ifndef NO_BSTR_HELPER
  5988.     if (NULL!=lpObj)
  5989.         SysFreeString(lpObj);
  5990. #endif  //  NO_BSTR_HELPER
  5991.  
  5992.     return hr;
  5993. }
  5994.  
  5995.  
  5996. VW_INLINE HRESULT CVisioApplication::putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5997. {
  5998.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5999.     CHECK_IP(GetIP(), CVisioApplication, putCustomToolbarsFile);
  6000.     if (NULL!=GetIP())
  6001.         hr= GetIP()->put_CustomToolbarsFile(param01);
  6002.     CHECK_HRESULT(hr, CVisioApplication, putCustomToolbarsFile);
  6003.     return hr;
  6004. }
  6005.  
  6006.  
  6007. VW_INLINE HRESULT CVisioApplication::ClearCustomToolbars()
  6008. {
  6009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6010.     CHECK_IP(GetIP(), CVisioApplication, ClearCustomToolbars);
  6011.     if (NULL!=GetIP())
  6012.         hr= GetIP()->ClearCustomToolbars();
  6013.     CHECK_HRESULT(hr, CVisioApplication, ClearCustomToolbars);
  6014.     return hr;
  6015. }
  6016.  
  6017.  
  6018. VW_INLINE HRESULT CVisioApplication::getAddonPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6019. {
  6020.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6021.     BSTR lpObj= NULL;
  6022.  
  6023.     CHECK_IP(GetIP(), CVisioApplication, getAddonPaths);
  6024.     if (NULL!=GetIP())
  6025.         hr= GetIP()->get_AddonPaths(&lpObj);
  6026.     CHECK_HRESULT(hr, CVisioApplication, getAddonPaths);
  6027.  
  6028.     rWrap= lpObj;
  6029. #ifndef NO_BSTR_HELPER
  6030.     if (NULL!=lpObj)
  6031.         SysFreeString(lpObj);
  6032. #endif  //  NO_BSTR_HELPER
  6033.  
  6034.     return hr;
  6035. }
  6036.  
  6037.  
  6038. VW_INLINE HRESULT CVisioApplication::putAddonPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6039. {
  6040.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6041.     CHECK_IP(GetIP(), CVisioApplication, putAddonPaths);
  6042.     if (NULL!=GetIP())
  6043.         hr= GetIP()->put_AddonPaths(param01);
  6044.     CHECK_HRESULT(hr, CVisioApplication, putAddonPaths);
  6045.     return hr;
  6046. }
  6047.  
  6048.  
  6049. VW_INLINE HRESULT CVisioApplication::getDrawingPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6050. {
  6051.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6052.     BSTR lpObj= NULL;
  6053.  
  6054.     CHECK_IP(GetIP(), CVisioApplication, getDrawingPaths);
  6055.     if (NULL!=GetIP())
  6056.         hr= GetIP()->get_DrawingPaths(&lpObj);
  6057.     CHECK_HRESULT(hr, CVisioApplication, getDrawingPaths);
  6058.  
  6059.     rWrap= lpObj;
  6060. #ifndef NO_BSTR_HELPER
  6061.     if (NULL!=lpObj)
  6062.         SysFreeString(lpObj);
  6063. #endif  //  NO_BSTR_HELPER
  6064.  
  6065.     return hr;
  6066. }
  6067.  
  6068.  
  6069. VW_INLINE HRESULT CVisioApplication::putDrawingPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6070. {
  6071.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6072.     CHECK_IP(GetIP(), CVisioApplication, putDrawingPaths);
  6073.     if (NULL!=GetIP())
  6074.         hr= GetIP()->put_DrawingPaths(param01);
  6075.     CHECK_HRESULT(hr, CVisioApplication, putDrawingPaths);
  6076.     return hr;
  6077. }
  6078.  
  6079.  
  6080. VW_INLINE HRESULT CVisioApplication::getFilterPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6081. {
  6082.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6083.     BSTR lpObj= NULL;
  6084.  
  6085.     CHECK_IP(GetIP(), CVisioApplication, getFilterPaths);
  6086.     if (NULL!=GetIP())
  6087.         hr= GetIP()->get_FilterPaths(&lpObj);
  6088.     CHECK_HRESULT(hr, CVisioApplication, getFilterPaths);
  6089.  
  6090.     rWrap= lpObj;
  6091. #ifndef NO_BSTR_HELPER
  6092.     if (NULL!=lpObj)
  6093.         SysFreeString(lpObj);
  6094. #endif  //  NO_BSTR_HELPER
  6095.  
  6096.     return hr;
  6097. }
  6098.  
  6099.  
  6100. VW_INLINE HRESULT CVisioApplication::putFilterPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6101. {
  6102.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6103.     CHECK_IP(GetIP(), CVisioApplication, putFilterPaths);
  6104.     if (NULL!=GetIP())
  6105.         hr= GetIP()->put_FilterPaths(param01);
  6106.     CHECK_HRESULT(hr, CVisioApplication, putFilterPaths);
  6107.     return hr;
  6108. }
  6109.  
  6110.  
  6111. VW_INLINE HRESULT CVisioApplication::getHelpPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6112. {
  6113.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6114.     BSTR lpObj= NULL;
  6115.  
  6116.     CHECK_IP(GetIP(), CVisioApplication, getHelpPaths);
  6117.     if (NULL!=GetIP())
  6118.         hr= GetIP()->get_HelpPaths(&lpObj);
  6119.     CHECK_HRESULT(hr, CVisioApplication, getHelpPaths);
  6120.  
  6121.     rWrap= lpObj;
  6122. #ifndef NO_BSTR_HELPER
  6123.     if (NULL!=lpObj)
  6124.         SysFreeString(lpObj);
  6125. #endif  //  NO_BSTR_HELPER
  6126.  
  6127.     return hr;
  6128. }
  6129.  
  6130.  
  6131. VW_INLINE HRESULT CVisioApplication::putHelpPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6132. {
  6133.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6134.     CHECK_IP(GetIP(), CVisioApplication, putHelpPaths);
  6135.     if (NULL!=GetIP())
  6136.         hr= GetIP()->put_HelpPaths(param01);
  6137.     CHECK_HRESULT(hr, CVisioApplication, putHelpPaths);
  6138.     return hr;
  6139. }
  6140.  
  6141.  
  6142. VW_INLINE HRESULT CVisioApplication::getStartupPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6143. {
  6144.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6145.     BSTR lpObj= NULL;
  6146.  
  6147.     CHECK_IP(GetIP(), CVisioApplication, getStartupPaths);
  6148.     if (NULL!=GetIP())
  6149.         hr= GetIP()->get_StartupPaths(&lpObj);
  6150.     CHECK_HRESULT(hr, CVisioApplication, getStartupPaths);
  6151.  
  6152.     rWrap= lpObj;
  6153. #ifndef NO_BSTR_HELPER
  6154.     if (NULL!=lpObj)
  6155.         SysFreeString(lpObj);
  6156. #endif  //  NO_BSTR_HELPER
  6157.  
  6158.     return hr;
  6159. }
  6160.  
  6161.  
  6162. VW_INLINE HRESULT CVisioApplication::putStartupPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6163. {
  6164.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6165.     CHECK_IP(GetIP(), CVisioApplication, putStartupPaths);
  6166.     if (NULL!=GetIP())
  6167.         hr= GetIP()->put_StartupPaths(param01);
  6168.     CHECK_HRESULT(hr, CVisioApplication, putStartupPaths);
  6169.     return hr;
  6170. }
  6171.  
  6172.  
  6173. VW_INLINE HRESULT CVisioApplication::getStencilPaths(BSTR_HELPER_CLASS FAR &rWrap)
  6174. {
  6175.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6176.     BSTR lpObj= NULL;
  6177.  
  6178.     CHECK_IP(GetIP(), CVisioApplication, getStencilPaths);
  6179.     if (NULL!=GetIP())
  6180.         hr= GetIP()->get_StencilPaths(&lpObj);
  6181.     CHECK_HRESULT(hr, CVisioApplication, getStencilPaths);
  6182.  
  6183.     rWrap= lpObj;
  6184. #ifndef NO_BSTR_HELPER
  6185.     if (NULL!=lpObj)
  6186.         SysFreeString(lpObj);
  6187. #endif  //  NO_BSTR_HELPER
  6188.  
  6189.     return hr;
  6190. }
  6191.  
  6192.  
  6193. VW_INLINE HRESULT CVisioApplication::putStencilPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6194. {
  6195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6196.     CHECK_IP(GetIP(), CVisioApplication, putStencilPaths);
  6197.     if (NULL!=GetIP())
  6198.         hr= GetIP()->put_StencilPaths(param01);
  6199.     CHECK_HRESULT(hr, CVisioApplication, putStencilPaths);
  6200.     return hr;
  6201. }
  6202.  
  6203.  
  6204. VW_INLINE HRESULT CVisioApplication::getTemplatePaths(BSTR_HELPER_CLASS FAR &rWrap)
  6205. {
  6206.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6207.     BSTR lpObj= NULL;
  6208.  
  6209.     CHECK_IP(GetIP(), CVisioApplication, getTemplatePaths);
  6210.     if (NULL!=GetIP())
  6211.         hr= GetIP()->get_TemplatePaths(&lpObj);
  6212.     CHECK_HRESULT(hr, CVisioApplication, getTemplatePaths);
  6213.  
  6214.     rWrap= lpObj;
  6215. #ifndef NO_BSTR_HELPER
  6216.     if (NULL!=lpObj)
  6217.         SysFreeString(lpObj);
  6218. #endif  //  NO_BSTR_HELPER
  6219.  
  6220.     return hr;
  6221. }
  6222.  
  6223.  
  6224. VW_INLINE HRESULT CVisioApplication::putTemplatePaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6225. {
  6226.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6227.     CHECK_IP(GetIP(), CVisioApplication, putTemplatePaths);
  6228.     if (NULL!=GetIP())
  6229.         hr= GetIP()->put_TemplatePaths(param01);
  6230.     CHECK_HRESULT(hr, CVisioApplication, putTemplatePaths);
  6231.     return hr;
  6232. }
  6233.  
  6234.  
  6235. VW_INLINE HRESULT CVisioApplication::getUserName(BSTR_HELPER_CLASS FAR &rWrap)
  6236. {
  6237.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6238.     BSTR lpObj= NULL;
  6239.  
  6240.     CHECK_IP(GetIP(), CVisioApplication, getUserName);
  6241.     if (NULL!=GetIP())
  6242.         hr= GetIP()->get_UserName(&lpObj);
  6243.     CHECK_HRESULT(hr, CVisioApplication, getUserName);
  6244.  
  6245.     rWrap= lpObj;
  6246. #ifndef NO_BSTR_HELPER
  6247.     if (NULL!=lpObj)
  6248.         SysFreeString(lpObj);
  6249. #endif  //  NO_BSTR_HELPER
  6250.  
  6251.     return hr;
  6252. }
  6253.  
  6254.  
  6255. VW_INLINE HRESULT CVisioApplication::putUserName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6256. {
  6257.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6258.     CHECK_IP(GetIP(), CVisioApplication, putUserName);
  6259.     if (NULL!=GetIP())
  6260.         hr= GetIP()->put_UserName(param01);
  6261.     CHECK_HRESULT(hr, CVisioApplication, putUserName);
  6262.     return hr;
  6263. }
  6264.  
  6265.  
  6266. VW_INLINE HRESULT CVisioApplication::getPromptForSummary(short FAR *lpRet)
  6267. {
  6268.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6269.     CHECK_IP(GetIP(), CVisioApplication, getPromptForSummary);
  6270.     if (NULL!=GetIP())
  6271.         hr= GetIP()->get_PromptForSummary(lpRet);
  6272.     CHECK_HRESULT(hr, CVisioApplication, getPromptForSummary);
  6273.     return hr;
  6274. }
  6275.  
  6276.  
  6277. VW_INLINE HRESULT CVisioApplication::putPromptForSummary(VW_CONST short param01)
  6278. {
  6279.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6280.     CHECK_IP(GetIP(), CVisioApplication, putPromptForSummary);
  6281.     if (NULL!=GetIP())
  6282.         hr= GetIP()->put_PromptForSummary(param01);
  6283.     CHECK_HRESULT(hr, CVisioApplication, putPromptForSummary);
  6284.     return hr;
  6285. }
  6286.  
  6287.  
  6288. VW_INLINE HRESULT CVisioApplication::Addons(CVisioAddons FAR &rWrap)
  6289. {
  6290.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6291.     IVAddons FAR *lpObj= NULL;
  6292.  
  6293.     CHECK_IP(GetIP(), CVisioApplication, Addons);
  6294.     if (NULL!=GetIP())
  6295.         hr= GetIP()->get_Addons(&lpObj);
  6296.     CHECK_HRESULT(hr, CVisioApplication, Addons);
  6297.  
  6298.     rWrap= lpObj;
  6299.     if (NULL!=lpObj)
  6300.         lpObj->Release();
  6301.  
  6302.     return hr;
  6303. }
  6304.  
  6305.  
  6306. VW_INLINE HRESULT CVisioApplication::SaveWorkspaceAs(BSTR_HELPER_CLASS FAR &FileName)
  6307. {
  6308.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6309.     CHECK_IP(GetIP(), CVisioApplication, SaveWorkspaceAs);
  6310.     if (NULL!=GetIP())
  6311.         hr= GetIP()->SaveWorkspaceAs(FileName);
  6312.     CHECK_HRESULT(hr, CVisioApplication, SaveWorkspaceAs);
  6313.     return hr;
  6314. }
  6315.  
  6316.  
  6317. VW_INLINE HRESULT CVisioApplication::DoCmd(short CommandID)
  6318. {
  6319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6320.     CHECK_IP(GetIP(), CVisioApplication, DoCmd);
  6321.     if (NULL!=GetIP())
  6322.         hr= GetIP()->DoCmd(CommandID);
  6323.     CHECK_HRESULT(hr, CVisioApplication, DoCmd);
  6324.     return hr;
  6325. }
  6326.  
  6327.  
  6328. VW_INLINE HRESULT CVisioApplication::ProfileName(BSTR_HELPER_CLASS FAR &rWrap)
  6329. {
  6330.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6331.     BSTR lpObj= NULL;
  6332.  
  6333.     CHECK_IP(GetIP(), CVisioApplication, ProfileName);
  6334.     if (NULL!=GetIP())
  6335.         hr= GetIP()->get_ProfileName(&lpObj);
  6336.     CHECK_HRESULT(hr, CVisioApplication, ProfileName);
  6337.  
  6338.     rWrap= lpObj;
  6339. #ifndef NO_BSTR_HELPER
  6340.     if (NULL!=lpObj)
  6341.         SysFreeString(lpObj);
  6342. #endif  //  NO_BSTR_HELPER
  6343.  
  6344.     return hr;
  6345. }
  6346.  
  6347.  
  6348. VW_INLINE HRESULT CVisioApplication::EventInfo(long reservedPass0, BSTR_HELPER_CLASS FAR &rWrap)
  6349. {
  6350.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6351.     BSTR lpObj= NULL;
  6352.  
  6353.     CHECK_IP(GetIP(), CVisioApplication, EventInfo);
  6354.     if (NULL!=GetIP())
  6355.         hr= GetIP()->get_EventInfo(reservedPass0, &lpObj);
  6356.     CHECK_HRESULT(hr, CVisioApplication, EventInfo);
  6357.  
  6358.     rWrap= lpObj;
  6359. #ifndef NO_BSTR_HELPER
  6360.     if (NULL!=lpObj)
  6361.         SysFreeString(lpObj);
  6362. #endif  //  NO_BSTR_HELPER
  6363.  
  6364.     return hr;
  6365. }
  6366.  
  6367.  
  6368. VW_INLINE HRESULT CVisioApplication::EventList(CVisioEventList FAR &rWrap)
  6369. {
  6370.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6371.     IVEventList FAR *lpObj= NULL;
  6372.  
  6373.     CHECK_IP(GetIP(), CVisioApplication, EventList);
  6374.     if (NULL!=GetIP())
  6375.         hr= GetIP()->get_EventList(&lpObj);
  6376.     CHECK_HRESULT(hr, CVisioApplication, EventList);
  6377.  
  6378.     rWrap= lpObj;
  6379.     if (NULL!=lpObj)
  6380.         lpObj->Release();
  6381.  
  6382.     return hr;
  6383. }
  6384.  
  6385.  
  6386. VW_INLINE HRESULT CVisioApplication::PersistsEvents(short FAR *lpRet)
  6387. {
  6388.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6389.     CHECK_IP(GetIP(), CVisioApplication, PersistsEvents);
  6390.     if (NULL!=GetIP())
  6391.         hr= GetIP()->get_PersistsEvents(lpRet);
  6392.     CHECK_HRESULT(hr, CVisioApplication, PersistsEvents);
  6393.     return hr;
  6394. }
  6395.  
  6396.  
  6397. VW_INLINE HRESULT CVisioApplication::Active(short FAR *lpRet)
  6398. {
  6399.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6400.     CHECK_IP(GetIP(), CVisioApplication, Active);
  6401.     if (NULL!=GetIP())
  6402.         hr= GetIP()->get_Active(lpRet);
  6403.     CHECK_HRESULT(hr, CVisioApplication, Active);
  6404.     return hr;
  6405. }
  6406.  
  6407.  
  6408. VW_INLINE HRESULT CVisioApplication::getDeferRecalc(short FAR *lpRet)
  6409. {
  6410.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6411.     CHECK_IP(GetIP(), CVisioApplication, getDeferRecalc);
  6412.     if (NULL!=GetIP())
  6413.         hr= GetIP()->get_DeferRecalc(lpRet);
  6414.     CHECK_HRESULT(hr, CVisioApplication, getDeferRecalc);
  6415.     return hr;
  6416. }
  6417.  
  6418.  
  6419. VW_INLINE HRESULT CVisioApplication::putDeferRecalc(VW_CONST short param01)
  6420. {
  6421.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6422.     CHECK_IP(GetIP(), CVisioApplication, putDeferRecalc);
  6423.     if (NULL!=GetIP())
  6424.         hr= GetIP()->put_DeferRecalc(param01);
  6425.     CHECK_HRESULT(hr, CVisioApplication, putDeferRecalc);
  6426.     return hr;
  6427. }
  6428.  
  6429.  
  6430. VW_INLINE HRESULT CVisioApplication::getAlertResponse(short FAR *lpRet)
  6431. {
  6432.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6433.     CHECK_IP(GetIP(), CVisioApplication, getAlertResponse);
  6434.     if (NULL!=GetIP())
  6435.         hr= GetIP()->get_AlertResponse(lpRet);
  6436.     CHECK_HRESULT(hr, CVisioApplication, getAlertResponse);
  6437.     return hr;
  6438. }
  6439.  
  6440.  
  6441. VW_INLINE HRESULT CVisioApplication::putAlertResponse(VW_CONST short param01)
  6442. {
  6443.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6444.     CHECK_IP(GetIP(), CVisioApplication, putAlertResponse);
  6445.     if (NULL!=GetIP())
  6446.         hr= GetIP()->put_AlertResponse(param01);
  6447.     CHECK_HRESULT(hr, CVisioApplication, putAlertResponse);
  6448.     return hr;
  6449. }
  6450.  
  6451.  
  6452. VW_INLINE HRESULT CVisioApplication::getShowProgress(short FAR *lpRet)
  6453. {
  6454.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6455.     CHECK_IP(GetIP(), CVisioApplication, getShowProgress);
  6456.     if (NULL!=GetIP())
  6457.         hr= GetIP()->get_ShowProgress(lpRet);
  6458.     CHECK_HRESULT(hr, CVisioApplication, getShowProgress);
  6459.     return hr;
  6460. }
  6461.  
  6462.  
  6463. VW_INLINE HRESULT CVisioApplication::putShowProgress(VW_CONST short param01)
  6464. {
  6465.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6466.     CHECK_IP(GetIP(), CVisioApplication, putShowProgress);
  6467.     if (NULL!=GetIP())
  6468.         hr= GetIP()->put_ShowProgress(param01);
  6469.     CHECK_HRESULT(hr, CVisioApplication, putShowProgress);
  6470.     return hr;
  6471. }
  6472.  
  6473.  
  6474. VW_INLINE HRESULT CVisioApplication::Vbe(IDispatch FAR *FAR *lpRet)
  6475. {
  6476.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6477.     CHECK_IP(GetIP(), CVisioApplication, Vbe);
  6478.     if (NULL!=GetIP())
  6479.         hr= GetIP()->get_Vbe(lpRet);
  6480.     CHECK_HRESULT(hr, CVisioApplication, Vbe);
  6481.     return hr;
  6482. }
  6483.  
  6484.  
  6485. VW_INLINE HRESULT CVisioApplication::getShowMenus(short FAR *lpRet)
  6486. {
  6487.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6488.     CHECK_IP(GetIP(), CVisioApplication, getShowMenus);
  6489.     if (NULL!=GetIP())
  6490.         hr= GetIP()->get_ShowMenus(lpRet);
  6491.     CHECK_HRESULT(hr, CVisioApplication, getShowMenus);
  6492.     return hr;
  6493. }
  6494.  
  6495.  
  6496. VW_INLINE HRESULT CVisioApplication::putShowMenus(VW_CONST short param01)
  6497. {
  6498.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6499.     CHECK_IP(GetIP(), CVisioApplication, putShowMenus);
  6500.     if (NULL!=GetIP())
  6501.         hr= GetIP()->put_ShowMenus(param01);
  6502.     CHECK_HRESULT(hr, CVisioApplication, putShowMenus);
  6503.     return hr;
  6504. }
  6505.  
  6506.  
  6507. VW_INLINE HRESULT CVisioApplication::getToolbarStyle(short FAR *lpRet)
  6508. {
  6509.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6510.     CHECK_IP(GetIP(), CVisioApplication, getToolbarStyle);
  6511.     if (NULL!=GetIP())
  6512.         hr= GetIP()->get_ToolbarStyle(lpRet);
  6513.     CHECK_HRESULT(hr, CVisioApplication, getToolbarStyle);
  6514.     return hr;
  6515. }
  6516.  
  6517.  
  6518. VW_INLINE HRESULT CVisioApplication::putToolbarStyle(VW_CONST short param01)
  6519. {
  6520.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6521.     CHECK_IP(GetIP(), CVisioApplication, putToolbarStyle);
  6522.     if (NULL!=GetIP())
  6523.         hr= GetIP()->put_ToolbarStyle(param01);
  6524.     CHECK_HRESULT(hr, CVisioApplication, putToolbarStyle);
  6525.     return hr;
  6526. }
  6527.  
  6528.  
  6529. VW_INLINE HRESULT CVisioApplication::getShowStatusBar(short FAR *lpRet)
  6530. {
  6531.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6532.     CHECK_IP(GetIP(), CVisioApplication, getShowStatusBar);
  6533.     if (NULL!=GetIP())
  6534.         hr= GetIP()->get_ShowStatusBar(lpRet);
  6535.     CHECK_HRESULT(hr, CVisioApplication, getShowStatusBar);
  6536.     return hr;
  6537. }
  6538.  
  6539.  
  6540. VW_INLINE HRESULT CVisioApplication::putShowStatusBar(VW_CONST short param01)
  6541. {
  6542.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6543.     CHECK_IP(GetIP(), CVisioApplication, putShowStatusBar);
  6544.     if (NULL!=GetIP())
  6545.         hr= GetIP()->put_ShowStatusBar(param01);
  6546.     CHECK_HRESULT(hr, CVisioApplication, putShowStatusBar);
  6547.     return hr;
  6548. }
  6549.  
  6550.  
  6551. VW_INLINE HRESULT CVisioApplication::getEventsEnabled(short FAR *lpRet)
  6552. {
  6553.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6554.     CHECK_IP(GetIP(), CVisioApplication, getEventsEnabled);
  6555.     if (NULL!=GetIP())
  6556.         hr= GetIP()->get_EventsEnabled(lpRet);
  6557.     CHECK_HRESULT(hr, CVisioApplication, getEventsEnabled);
  6558.     return hr;
  6559. }
  6560.  
  6561.  
  6562. VW_INLINE HRESULT CVisioApplication::putEventsEnabled(VW_CONST short param01)
  6563. {
  6564.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6565.     CHECK_IP(GetIP(), CVisioApplication, putEventsEnabled);
  6566.     if (NULL!=GetIP())
  6567.         hr= GetIP()->put_EventsEnabled(param01);
  6568.     CHECK_HRESULT(hr, CVisioApplication, putEventsEnabled);
  6569.     return hr;
  6570. }
  6571.  
  6572.  
  6573. VW_INLINE HRESULT CVisioApplication::FormatResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, BSTR_HELPER_CLASS FAR &Format, BSTR_HELPER_CLASS FAR &rWrap)
  6574. {
  6575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6576.     BSTR lpObj= NULL;
  6577.  
  6578.     CHECK_IP(GetIP(), CVisioApplication, FormatResult);
  6579.     if (NULL!=GetIP())
  6580.         hr= GetIP()->FormatResult(StringOrNumber, UnitsIn, UnitsOut, Format, &lpObj);
  6581.     CHECK_HRESULT(hr, CVisioApplication, FormatResult);
  6582.  
  6583.     rWrap= lpObj;
  6584. #ifndef NO_BSTR_HELPER
  6585.     if (NULL!=lpObj)
  6586.         SysFreeString(lpObj);
  6587. #endif  //  NO_BSTR_HELPER
  6588.  
  6589.     return hr;
  6590. }
  6591.  
  6592.  
  6593. VW_INLINE HRESULT CVisioApplication::ConvertResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, double FAR *lpRet)
  6594. {
  6595.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6596.     CHECK_IP(GetIP(), CVisioApplication, ConvertResult);
  6597.     if (NULL!=GetIP())
  6598.         hr= GetIP()->ConvertResult(StringOrNumber, UnitsIn, UnitsOut, lpRet);
  6599.     CHECK_HRESULT(hr, CVisioApplication, ConvertResult);
  6600.     return hr;
  6601. }
  6602.  
  6603.  
  6604. VW_INLINE HRESULT CVisioApplication::Path(BSTR_HELPER_CLASS FAR &rWrap)
  6605. {
  6606.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6607.     BSTR lpObj= NULL;
  6608.  
  6609.     CHECK_IP(GetIP(), CVisioApplication, Path);
  6610.     if (NULL!=GetIP())
  6611.         hr= GetIP()->get_Path(&lpObj);
  6612.     CHECK_HRESULT(hr, CVisioApplication, Path);
  6613.  
  6614.     rWrap= lpObj;
  6615. #ifndef NO_BSTR_HELPER
  6616.     if (NULL!=lpObj)
  6617.         SysFreeString(lpObj);
  6618. #endif  //  NO_BSTR_HELPER
  6619.  
  6620.     return hr;
  6621. }
  6622.  
  6623.  
  6624. VW_INLINE HRESULT CVisioApplication::EnumDirectories(BSTR_HELPER_CLASS FAR &PathsString, /*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  6625. {
  6626.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6627.     CHECK_IP(GetIP(), CVisioApplication, EnumDirectories);
  6628.     if (NULL!=GetIP())
  6629.         hr= GetIP()->EnumDirectories(PathsString, NameArray);
  6630.     CHECK_HRESULT(hr, CVisioApplication, EnumDirectories);
  6631.     return hr;
  6632. }
  6633.  
  6634.  
  6635. VW_INLINE HRESULT CVisioApplication::getTraceFlags(long FAR *lpRet)
  6636. {
  6637.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6638.     CHECK_IP(GetIP(), CVisioApplication, getTraceFlags);
  6639.     if (NULL!=GetIP())
  6640.         hr= GetIP()->get_TraceFlags(lpRet);
  6641.     CHECK_HRESULT(hr, CVisioApplication, getTraceFlags);
  6642.     return hr;
  6643. }
  6644.  
  6645.  
  6646. VW_INLINE HRESULT CVisioApplication::putTraceFlags(VW_CONST long param01)
  6647. {
  6648.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6649.     CHECK_IP(GetIP(), CVisioApplication, putTraceFlags);
  6650.     if (NULL!=GetIP())
  6651.         hr= GetIP()->put_TraceFlags(param01);
  6652.     CHECK_HRESULT(hr, CVisioApplication, putTraceFlags);
  6653.     return hr;
  6654. }
  6655.  
  6656.  
  6657. VW_INLINE HRESULT CVisioApplication::PurgeUndo()
  6658. {
  6659.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6660.     CHECK_IP(GetIP(), CVisioApplication, PurgeUndo);
  6661.     if (NULL!=GetIP())
  6662.         hr= GetIP()->PurgeUndo();
  6663.     CHECK_HRESULT(hr, CVisioApplication, PurgeUndo);
  6664.     return hr;
  6665. }
  6666.  
  6667.  
  6668. VW_INLINE HRESULT CVisioApplication::QueueMarkerEvent(BSTR_HELPER_CLASS FAR &ContextString, long FAR *lpRet)
  6669. {
  6670.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6671.     CHECK_IP(GetIP(), CVisioApplication, QueueMarkerEvent);
  6672.     if (NULL!=GetIP())
  6673.         hr= GetIP()->QueueMarkerEvent(ContextString, lpRet);
  6674.     CHECK_HRESULT(hr, CVisioApplication, QueueMarkerEvent);
  6675.     return hr;
  6676. }
  6677.  
  6678.  
  6679. VW_INLINE HRESULT CVisioApplication::getShowToolbar(short FAR *lpRet)
  6680. {
  6681.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6682.     CHECK_IP(GetIP(), CVisioApplication, getShowToolbar);
  6683.     if (NULL!=GetIP())
  6684.         hr= GetIP()->get_ShowToolbar(lpRet);
  6685.     CHECK_HRESULT(hr, CVisioApplication, getShowToolbar);
  6686.     return hr;
  6687. }
  6688.  
  6689.  
  6690. VW_INLINE HRESULT CVisioApplication::putShowToolbar(VW_CONST short param01)
  6691. {
  6692.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6693.     CHECK_IP(GetIP(), CVisioApplication, putShowToolbar);
  6694.     if (NULL!=GetIP())
  6695.         hr= GetIP()->put_ShowToolbar(param01);
  6696.     CHECK_HRESULT(hr, CVisioApplication, putShowToolbar);
  6697.     return hr;
  6698. }
  6699.  
  6700.  
  6701.  
  6702. //  ***************************************************************************
  6703. //  Implementation of class CVisioCell
  6704.  
  6705. VW_INLINE HRESULT CVisioCell::Application(CVisioApplication FAR &rWrap)
  6706. {
  6707.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6708.     IVApplication FAR *lpObj= NULL;
  6709.  
  6710.     CHECK_IP(GetIP(), CVisioCell, Application);
  6711.     if (NULL!=GetIP())
  6712.         hr= GetIP()->get_Application(&lpObj);
  6713.     CHECK_HRESULT(hr, CVisioCell, Application);
  6714.  
  6715.     rWrap= lpObj;
  6716.     if (NULL!=lpObj)
  6717.         lpObj->Release();
  6718.  
  6719.     return hr;
  6720. }
  6721.  
  6722.  
  6723. VW_INLINE HRESULT CVisioCell::ObjectType(short FAR *lpRet)
  6724. {
  6725.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6726.     CHECK_IP(GetIP(), CVisioCell, ObjectType);
  6727.     if (NULL!=GetIP())
  6728.         hr= GetIP()->get_ObjectType(lpRet);
  6729.     CHECK_HRESULT(hr, CVisioCell, ObjectType);
  6730.     return hr;
  6731. }
  6732.  
  6733.  
  6734. VW_INLINE HRESULT CVisioCell::Error(short FAR *lpRet)
  6735. {
  6736.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6737.     CHECK_IP(GetIP(), CVisioCell, Error);
  6738.     if (NULL!=GetIP())
  6739.         hr= GetIP()->get_Error(lpRet);
  6740.     CHECK_HRESULT(hr, CVisioCell, Error);
  6741.     return hr;
  6742. }
  6743.  
  6744.  
  6745. VW_INLINE HRESULT CVisioCell::getFormula(BSTR_HELPER_CLASS FAR &rWrap)
  6746. {
  6747.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6748.     BSTR lpObj= NULL;
  6749.  
  6750.     CHECK_IP(GetIP(), CVisioCell, getFormula);
  6751.     if (NULL!=GetIP())
  6752.         hr= GetIP()->get_Formula(&lpObj);
  6753.     CHECK_HRESULT(hr, CVisioCell, getFormula);
  6754.  
  6755.     rWrap= lpObj;
  6756. #ifndef NO_BSTR_HELPER
  6757.     if (NULL!=lpObj)
  6758.         SysFreeString(lpObj);
  6759. #endif  //  NO_BSTR_HELPER
  6760.  
  6761.     return hr;
  6762. }
  6763.  
  6764.  
  6765. VW_INLINE HRESULT CVisioCell::putFormula(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6766. {
  6767.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6768.     CHECK_IP(GetIP(), CVisioCell, putFormula);
  6769.     if (NULL!=GetIP())
  6770.         hr= GetIP()->put_Formula(param01);
  6771.     CHECK_HRESULT(hr, CVisioCell, putFormula);
  6772.     return hr;
  6773. }
  6774.  
  6775.  
  6776. VW_INLINE HRESULT CVisioCell::FormulaForce(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6777. {
  6778.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6779.     CHECK_IP(GetIP(), CVisioCell, FormulaForce);
  6780.     if (NULL!=GetIP())
  6781.         hr= GetIP()->put_FormulaForce(param01);
  6782.     CHECK_HRESULT(hr, CVisioCell, FormulaForce);
  6783.     return hr;
  6784. }
  6785.  
  6786.  
  6787. VW_INLINE HRESULT CVisioCell::GlueTo(CVisioCell FAR &CellObject)
  6788. {
  6789.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6790.     CHECK_IP(GetIP(), CVisioCell, GlueTo);
  6791.     if (NULL!=GetIP())
  6792.         hr= GetIP()->GlueTo(CellObject);
  6793.     CHECK_HRESULT(hr, CVisioCell, GlueTo);
  6794.     return hr;
  6795. }
  6796.  
  6797.  
  6798. VW_INLINE HRESULT CVisioCell::GlueToPos(CVisioShape FAR &SheetObject, double xPercent, double yPercent)
  6799. {
  6800.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6801.     CHECK_IP(GetIP(), CVisioCell, GlueToPos);
  6802.     if (NULL!=GetIP())
  6803.         hr= GetIP()->GlueToPos(SheetObject, xPercent, yPercent);
  6804.     CHECK_HRESULT(hr, CVisioCell, GlueToPos);
  6805.     return hr;
  6806. }
  6807.  
  6808.  
  6809. VW_INLINE HRESULT CVisioCell::getResult(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  6810. {
  6811.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6812.     CHECK_IP(GetIP(), CVisioCell, getResult);
  6813.     if (NULL!=GetIP())
  6814.         hr= GetIP()->get_Result(UnitsNameOrCode, lpRet);
  6815.     CHECK_HRESULT(hr, CVisioCell, getResult);
  6816.     return hr;
  6817. }
  6818.  
  6819.  
  6820. VW_INLINE HRESULT CVisioCell::putResult(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  6821. {
  6822.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6823.     CHECK_IP(GetIP(), CVisioCell, putResult);
  6824.     if (NULL!=GetIP())
  6825.         hr= GetIP()->put_Result(UnitsNameOrCode, param02);
  6826.     CHECK_HRESULT(hr, CVisioCell, putResult);
  6827.     return hr;
  6828. }
  6829.  
  6830.  
  6831. VW_INLINE HRESULT CVisioCell::ResultForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  6832. {
  6833.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6834.     CHECK_IP(GetIP(), CVisioCell, ResultForce);
  6835.     if (NULL!=GetIP())
  6836.         hr= GetIP()->put_ResultForce(UnitsNameOrCode, param02);
  6837.     CHECK_HRESULT(hr, CVisioCell, ResultForce);
  6838.     return hr;
  6839. }
  6840.  
  6841.  
  6842. VW_INLINE HRESULT CVisioCell::getResultIU(double FAR *lpRet)
  6843. {
  6844.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6845.     CHECK_IP(GetIP(), CVisioCell, getResultIU);
  6846.     if (NULL!=GetIP())
  6847.         hr= GetIP()->get_ResultIU(lpRet);
  6848.     CHECK_HRESULT(hr, CVisioCell, getResultIU);
  6849.     return hr;
  6850. }
  6851.  
  6852.  
  6853. VW_INLINE HRESULT CVisioCell::putResultIU(VW_CONST double param01)
  6854. {
  6855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6856.     CHECK_IP(GetIP(), CVisioCell, putResultIU);
  6857.     if (NULL!=GetIP())
  6858.         hr= GetIP()->put_ResultIU(param01);
  6859.     CHECK_HRESULT(hr, CVisioCell, putResultIU);
  6860.     return hr;
  6861. }
  6862.  
  6863.  
  6864. VW_INLINE HRESULT CVisioCell::ResultIUForce(VW_CONST double param01)
  6865. {
  6866.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6867.     CHECK_IP(GetIP(), CVisioCell, ResultIUForce);
  6868.     if (NULL!=GetIP())
  6869.         hr= GetIP()->put_ResultIUForce(param01);
  6870.     CHECK_HRESULT(hr, CVisioCell, ResultIUForce);
  6871.     return hr;
  6872. }
  6873.  
  6874.  
  6875. VW_INLINE HRESULT CVisioCell::Stat(short FAR *lpRet)
  6876. {
  6877.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6878.     CHECK_IP(GetIP(), CVisioCell, Stat);
  6879.     if (NULL!=GetIP())
  6880.         hr= GetIP()->get_Stat(lpRet);
  6881.     CHECK_HRESULT(hr, CVisioCell, Stat);
  6882.     return hr;
  6883. }
  6884.  
  6885.  
  6886. VW_INLINE HRESULT CVisioCell::Units(short FAR *lpRet)
  6887. {
  6888.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6889.     CHECK_IP(GetIP(), CVisioCell, Units);
  6890.     if (NULL!=GetIP())
  6891.         hr= GetIP()->get_Units(lpRet);
  6892.     CHECK_HRESULT(hr, CVisioCell, Units);
  6893.     return hr;
  6894. }
  6895.  
  6896.  
  6897. VW_INLINE HRESULT CVisioCell::Name(BSTR_HELPER_CLASS FAR &rWrap)
  6898. {
  6899.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6900.     BSTR lpObj= NULL;
  6901.  
  6902.     CHECK_IP(GetIP(), CVisioCell, Name);
  6903.     if (NULL!=GetIP())
  6904.         hr= GetIP()->get_Name(&lpObj);
  6905.     CHECK_HRESULT(hr, CVisioCell, Name);
  6906.  
  6907.     rWrap= lpObj;
  6908. #ifndef NO_BSTR_HELPER
  6909.     if (NULL!=lpObj)
  6910.         SysFreeString(lpObj);
  6911. #endif  //  NO_BSTR_HELPER
  6912.  
  6913.     return hr;
  6914. }
  6915.  
  6916.  
  6917. VW_INLINE HRESULT CVisioCell::LocalName(BSTR_HELPER_CLASS FAR &rWrap)
  6918. {
  6919.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6920.     BSTR lpObj= NULL;
  6921.  
  6922.     CHECK_IP(GetIP(), CVisioCell, LocalName);
  6923.     if (NULL!=GetIP())
  6924.         hr= GetIP()->get_LocalName(&lpObj);
  6925.     CHECK_HRESULT(hr, CVisioCell, LocalName);
  6926.  
  6927.     rWrap= lpObj;
  6928. #ifndef NO_BSTR_HELPER
  6929.     if (NULL!=lpObj)
  6930.         SysFreeString(lpObj);
  6931. #endif  //  NO_BSTR_HELPER
  6932.  
  6933.     return hr;
  6934. }
  6935.  
  6936.  
  6937. VW_INLINE HRESULT CVisioCell::putRowName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6938. {
  6939.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6940.     CHECK_IP(GetIP(), CVisioCell, putRowName);
  6941.     if (NULL!=GetIP())
  6942.         hr= GetIP()->put_RowName(param01);
  6943.     CHECK_HRESULT(hr, CVisioCell, putRowName);
  6944.     return hr;
  6945. }
  6946.  
  6947.  
  6948. VW_INLINE HRESULT CVisioCell::Document(CVisioDocument FAR &rWrap)
  6949. {
  6950.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6951.     IVDocument FAR *lpObj= NULL;
  6952.  
  6953.     CHECK_IP(GetIP(), CVisioCell, Document);
  6954.     if (NULL!=GetIP())
  6955.         hr= GetIP()->get_Document(&lpObj);
  6956.     CHECK_HRESULT(hr, CVisioCell, Document);
  6957.  
  6958.     rWrap= lpObj;
  6959.     if (NULL!=lpObj)
  6960.         lpObj->Release();
  6961.  
  6962.     return hr;
  6963. }
  6964.  
  6965.  
  6966. VW_INLINE HRESULT CVisioCell::Shape(CVisioShape FAR &rWrap)
  6967. {
  6968.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6969.     IVShape FAR *lpObj= NULL;
  6970.  
  6971.     CHECK_IP(GetIP(), CVisioCell, Shape);
  6972.     if (NULL!=GetIP())
  6973.         hr= GetIP()->get_Shape(&lpObj);
  6974.     CHECK_HRESULT(hr, CVisioCell, Shape);
  6975.  
  6976.     rWrap= lpObj;
  6977.     if (NULL!=lpObj)
  6978.         lpObj->Release();
  6979.  
  6980.     return hr;
  6981. }
  6982.  
  6983.  
  6984. VW_INLINE HRESULT CVisioCell::Style(CVisioStyle FAR &rWrap)
  6985. {
  6986.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6987.     IVStyle FAR *lpObj= NULL;
  6988.  
  6989.     CHECK_IP(GetIP(), CVisioCell, Style);
  6990.     if (NULL!=GetIP())
  6991.         hr= GetIP()->get_Style(&lpObj);
  6992.     CHECK_HRESULT(hr, CVisioCell, Style);
  6993.  
  6994.     rWrap= lpObj;
  6995.     if (NULL!=lpObj)
  6996.         lpObj->Release();
  6997.  
  6998.     return hr;
  6999. }
  7000.  
  7001.  
  7002. VW_INLINE HRESULT CVisioCell::Section(short FAR *lpRet)
  7003. {
  7004.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7005.     CHECK_IP(GetIP(), CVisioCell, Section);
  7006.     if (NULL!=GetIP())
  7007.         hr= GetIP()->get_Section(lpRet);
  7008.     CHECK_HRESULT(hr, CVisioCell, Section);
  7009.     return hr;
  7010. }
  7011.  
  7012.  
  7013. VW_INLINE HRESULT CVisioCell::Row(short FAR *lpRet)
  7014. {
  7015.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7016.     CHECK_IP(GetIP(), CVisioCell, Row);
  7017.     if (NULL!=GetIP())
  7018.         hr= GetIP()->get_Row(lpRet);
  7019.     CHECK_HRESULT(hr, CVisioCell, Row);
  7020.     return hr;
  7021. }
  7022.  
  7023.  
  7024. VW_INLINE HRESULT CVisioCell::Column(short FAR *lpRet)
  7025. {
  7026.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7027.     CHECK_IP(GetIP(), CVisioCell, Column);
  7028.     if (NULL!=GetIP())
  7029.         hr= GetIP()->get_Column(lpRet);
  7030.     CHECK_HRESULT(hr, CVisioCell, Column);
  7031.     return hr;
  7032. }
  7033.  
  7034.  
  7035. VW_INLINE HRESULT CVisioCell::IsConstant(short FAR *lpRet)
  7036. {
  7037.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7038.     CHECK_IP(GetIP(), CVisioCell, IsConstant);
  7039.     if (NULL!=GetIP())
  7040.         hr= GetIP()->get_IsConstant(lpRet);
  7041.     CHECK_HRESULT(hr, CVisioCell, IsConstant);
  7042.     return hr;
  7043. }
  7044.  
  7045.  
  7046. VW_INLINE HRESULT CVisioCell::IsInherited(short FAR *lpRet)
  7047. {
  7048.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7049.     CHECK_IP(GetIP(), CVisioCell, IsInherited);
  7050.     if (NULL!=GetIP())
  7051.         hr= GetIP()->get_IsInherited(lpRet);
  7052.     CHECK_HRESULT(hr, CVisioCell, IsInherited);
  7053.     return hr;
  7054. }
  7055.  
  7056.  
  7057. VW_INLINE HRESULT CVisioCell::ResultInt(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, short fRound, long FAR *lpRet)
  7058. {
  7059.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7060.     CHECK_IP(GetIP(), CVisioCell, ResultInt);
  7061.     if (NULL!=GetIP())
  7062.         hr= GetIP()->get_ResultInt(UnitsNameOrCode, fRound, lpRet);
  7063.     CHECK_HRESULT(hr, CVisioCell, ResultInt);
  7064.     return hr;
  7065. }
  7066.  
  7067.  
  7068. VW_INLINE HRESULT CVisioCell::ResultFromInt(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02)
  7069. {
  7070.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7071.     CHECK_IP(GetIP(), CVisioCell, ResultFromInt);
  7072.     if (NULL!=GetIP())
  7073.         hr= GetIP()->put_ResultFromInt(UnitsNameOrCode, param02);
  7074.     CHECK_HRESULT(hr, CVisioCell, ResultFromInt);
  7075.     return hr;
  7076. }
  7077.  
  7078.  
  7079. VW_INLINE HRESULT CVisioCell::ResultFromIntForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02)
  7080. {
  7081.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7082.     CHECK_IP(GetIP(), CVisioCell, ResultFromIntForce);
  7083.     if (NULL!=GetIP())
  7084.         hr= GetIP()->put_ResultFromIntForce(UnitsNameOrCode, param02);
  7085.     CHECK_HRESULT(hr, CVisioCell, ResultFromIntForce);
  7086.     return hr;
  7087. }
  7088.  
  7089.  
  7090. VW_INLINE HRESULT CVisioCell::ResultStr(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, BSTR_HELPER_CLASS FAR &rWrap)
  7091. {
  7092.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7093.     BSTR lpObj= NULL;
  7094.  
  7095.     CHECK_IP(GetIP(), CVisioCell, ResultStr);
  7096.     if (NULL!=GetIP())
  7097.         hr= GetIP()->get_ResultStr(UnitsNameOrCode, &lpObj);
  7098.     CHECK_HRESULT(hr, CVisioCell, ResultStr);
  7099.  
  7100.     rWrap= lpObj;
  7101. #ifndef NO_BSTR_HELPER
  7102.     if (NULL!=lpObj)
  7103.         SysFreeString(lpObj);
  7104. #endif  //  NO_BSTR_HELPER
  7105.  
  7106.     return hr;
  7107. }
  7108.  
  7109.  
  7110. VW_INLINE HRESULT CVisioCell::Trigger()
  7111. {
  7112.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7113.     CHECK_IP(GetIP(), CVisioCell, Trigger);
  7114.     if (NULL!=GetIP())
  7115.         hr= GetIP()->Trigger();
  7116.     CHECK_HRESULT(hr, CVisioCell, Trigger);
  7117.     return hr;
  7118. }
  7119.  
  7120.  
  7121. VW_INLINE HRESULT CVisioCell::getRowName(BSTR_HELPER_CLASS FAR &rWrap)
  7122. {
  7123.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7124.     BSTR lpObj= NULL;
  7125.  
  7126.     CHECK_IP(GetIP(), CVisioCell, getRowName);
  7127.     if (NULL!=GetIP())
  7128.         hr= GetIP()->get_RowName(&lpObj);
  7129.     CHECK_HRESULT(hr, CVisioCell, getRowName);
  7130.  
  7131.     rWrap= lpObj;
  7132. #ifndef NO_BSTR_HELPER
  7133.     if (NULL!=lpObj)
  7134.         SysFreeString(lpObj);
  7135. #endif  //  NO_BSTR_HELPER
  7136.  
  7137.     return hr;
  7138. }
  7139.  
  7140.  
  7141. VW_INLINE HRESULT CVisioCell::EventList(CVisioEventList FAR &rWrap)
  7142. {
  7143.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7144.     IVEventList FAR *lpObj= NULL;
  7145.  
  7146.     CHECK_IP(GetIP(), CVisioCell, EventList);
  7147.     if (NULL!=GetIP())
  7148.         hr= GetIP()->get_EventList(&lpObj);
  7149.     CHECK_HRESULT(hr, CVisioCell, EventList);
  7150.  
  7151.     rWrap= lpObj;
  7152.     if (NULL!=lpObj)
  7153.         lpObj->Release();
  7154.  
  7155.     return hr;
  7156. }
  7157.  
  7158.  
  7159. VW_INLINE HRESULT CVisioCell::PersistsEvents(short FAR *lpRet)
  7160. {
  7161.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7162.     CHECK_IP(GetIP(), CVisioCell, PersistsEvents);
  7163.     if (NULL!=GetIP())
  7164.         hr= GetIP()->get_PersistsEvents(lpRet);
  7165.     CHECK_HRESULT(hr, CVisioCell, PersistsEvents);
  7166.     return hr;
  7167. }
  7168.  
  7169.  
  7170.  
  7171. //  ***************************************************************************
  7172. //  Implementation of class CVisioCharacters
  7173.  
  7174. VW_INLINE HRESULT CVisioCharacters::AddCustomField(BSTR_HELPER_CLASS FAR &Formula, short Format)
  7175. {
  7176.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7177.     CHECK_IP(GetIP(), CVisioCharacters, AddCustomField);
  7178.     if (NULL!=GetIP())
  7179.         hr= GetIP()->AddCustomField(Formula, Format);
  7180.     CHECK_HRESULT(hr, CVisioCharacters, AddCustomField);
  7181.     return hr;
  7182. }
  7183.  
  7184.  
  7185. VW_INLINE HRESULT CVisioCharacters::AddField(short Category, short Code, short Format)
  7186. {
  7187.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7188.     CHECK_IP(GetIP(), CVisioCharacters, AddField);
  7189.     if (NULL!=GetIP())
  7190.         hr= GetIP()->AddField(Category, Code, Format);
  7191.     CHECK_HRESULT(hr, CVisioCharacters, AddField);
  7192.     return hr;
  7193. }
  7194.  
  7195.  
  7196. VW_INLINE HRESULT CVisioCharacters::Application(CVisioApplication FAR &rWrap)
  7197. {
  7198.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7199.     IVApplication FAR *lpObj= NULL;
  7200.  
  7201.     CHECK_IP(GetIP(), CVisioCharacters, Application);
  7202.     if (NULL!=GetIP())
  7203.         hr= GetIP()->get_Application(&lpObj);
  7204.     CHECK_HRESULT(hr, CVisioCharacters, Application);
  7205.  
  7206.     rWrap= lpObj;
  7207.     if (NULL!=lpObj)
  7208.         lpObj->Release();
  7209.  
  7210.     return hr;
  7211. }
  7212.  
  7213.  
  7214. VW_INLINE HRESULT CVisioCharacters::getBegin(long FAR *lpRet)
  7215. {
  7216.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7217.     CHECK_IP(GetIP(), CVisioCharacters, getBegin);
  7218.     if (NULL!=GetIP())
  7219.         hr= GetIP()->get_Begin(lpRet);
  7220.     CHECK_HRESULT(hr, CVisioCharacters, getBegin);
  7221.     return hr;
  7222. }
  7223.  
  7224.  
  7225. VW_INLINE HRESULT CVisioCharacters::putBegin(VW_CONST long param01)
  7226. {
  7227.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7228.     CHECK_IP(GetIP(), CVisioCharacters, putBegin);
  7229.     if (NULL!=GetIP())
  7230.         hr= GetIP()->put_Begin(param01);
  7231.     CHECK_HRESULT(hr, CVisioCharacters, putBegin);
  7232.     return hr;
  7233. }
  7234.  
  7235.  
  7236. VW_INLINE HRESULT CVisioCharacters::CharCount(long FAR *lpRet)
  7237. {
  7238.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7239.     CHECK_IP(GetIP(), CVisioCharacters, CharCount);
  7240.     if (NULL!=GetIP())
  7241.         hr= GetIP()->get_CharCount(lpRet);
  7242.     CHECK_HRESULT(hr, CVisioCharacters, CharCount);
  7243.     return hr;
  7244. }
  7245.  
  7246.  
  7247. VW_INLINE HRESULT CVisioCharacters::CharProps(VW_CONST short CellIndex, VW_CONST short param02)
  7248. {
  7249.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7250.     CHECK_IP(GetIP(), CVisioCharacters, CharProps);
  7251.     if (NULL!=GetIP())
  7252.         hr= GetIP()->put_CharProps(CellIndex, param02);
  7253.     CHECK_HRESULT(hr, CVisioCharacters, CharProps);
  7254.     return hr;
  7255. }
  7256.  
  7257.  
  7258. VW_INLINE HRESULT CVisioCharacters::CharPropsRow(short BiasLorR, short FAR *lpRet)
  7259. {
  7260.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7261.     CHECK_IP(GetIP(), CVisioCharacters, CharPropsRow);
  7262.     if (NULL!=GetIP())
  7263.         hr= GetIP()->get_CharPropsRow(BiasLorR, lpRet);
  7264.     CHECK_HRESULT(hr, CVisioCharacters, CharPropsRow);
  7265.     return hr;
  7266. }
  7267.  
  7268.  
  7269. VW_INLINE HRESULT CVisioCharacters::Copy()
  7270. {
  7271.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7272.     CHECK_IP(GetIP(), CVisioCharacters, Copy);
  7273.     if (NULL!=GetIP())
  7274.         hr= GetIP()->Copy();
  7275.     CHECK_HRESULT(hr, CVisioCharacters, Copy);
  7276.     return hr;
  7277. }
  7278.  
  7279.  
  7280. VW_INLINE HRESULT CVisioCharacters::Cut()
  7281. {
  7282.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7283.     CHECK_IP(GetIP(), CVisioCharacters, Cut);
  7284.     if (NULL!=GetIP())
  7285.         hr= GetIP()->Cut();
  7286.     CHECK_HRESULT(hr, CVisioCharacters, Cut);
  7287.     return hr;
  7288. }
  7289.  
  7290.  
  7291. VW_INLINE HRESULT CVisioCharacters::ObjectType(short FAR *lpRet)
  7292. {
  7293.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7294.     CHECK_IP(GetIP(), CVisioCharacters, ObjectType);
  7295.     if (NULL!=GetIP())
  7296.         hr= GetIP()->get_ObjectType(lpRet);
  7297.     CHECK_HRESULT(hr, CVisioCharacters, ObjectType);
  7298.     return hr;
  7299. }
  7300.  
  7301.  
  7302. VW_INLINE HRESULT CVisioCharacters::getEnd(long FAR *lpRet)
  7303. {
  7304.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7305.     CHECK_IP(GetIP(), CVisioCharacters, getEnd);
  7306.     if (NULL!=GetIP())
  7307.         hr= GetIP()->get_End(lpRet);
  7308.     CHECK_HRESULT(hr, CVisioCharacters, getEnd);
  7309.     return hr;
  7310. }
  7311.  
  7312.  
  7313. VW_INLINE HRESULT CVisioCharacters::putEnd(VW_CONST long param01)
  7314. {
  7315.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7316.     CHECK_IP(GetIP(), CVisioCharacters, putEnd);
  7317.     if (NULL!=GetIP())
  7318.         hr= GetIP()->put_End(param01);
  7319.     CHECK_HRESULT(hr, CVisioCharacters, putEnd);
  7320.     return hr;
  7321. }
  7322.  
  7323.  
  7324. VW_INLINE HRESULT CVisioCharacters::FieldCategory(short FAR *lpRet)
  7325. {
  7326.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7327.     CHECK_IP(GetIP(), CVisioCharacters, FieldCategory);
  7328.     if (NULL!=GetIP())
  7329.         hr= GetIP()->get_FieldCategory(lpRet);
  7330.     CHECK_HRESULT(hr, CVisioCharacters, FieldCategory);
  7331.     return hr;
  7332. }
  7333.  
  7334.  
  7335. VW_INLINE HRESULT CVisioCharacters::FieldCode(short FAR *lpRet)
  7336. {
  7337.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7338.     CHECK_IP(GetIP(), CVisioCharacters, FieldCode);
  7339.     if (NULL!=GetIP())
  7340.         hr= GetIP()->get_FieldCode(lpRet);
  7341.     CHECK_HRESULT(hr, CVisioCharacters, FieldCode);
  7342.     return hr;
  7343. }
  7344.  
  7345.  
  7346. VW_INLINE HRESULT CVisioCharacters::FieldFormat(short FAR *lpRet)
  7347. {
  7348.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7349.     CHECK_IP(GetIP(), CVisioCharacters, FieldFormat);
  7350.     if (NULL!=GetIP())
  7351.         hr= GetIP()->get_FieldFormat(lpRet);
  7352.     CHECK_HRESULT(hr, CVisioCharacters, FieldFormat);
  7353.     return hr;
  7354. }
  7355.  
  7356.  
  7357. VW_INLINE HRESULT CVisioCharacters::FieldFormula(BSTR_HELPER_CLASS FAR &rWrap)
  7358. {
  7359.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7360.     BSTR lpObj= NULL;
  7361.  
  7362.     CHECK_IP(GetIP(), CVisioCharacters, FieldFormula);
  7363.     if (NULL!=GetIP())
  7364.         hr= GetIP()->get_FieldFormula(&lpObj);
  7365.     CHECK_HRESULT(hr, CVisioCharacters, FieldFormula);
  7366.  
  7367.     rWrap= lpObj;
  7368. #ifndef NO_BSTR_HELPER
  7369.     if (NULL!=lpObj)
  7370.         SysFreeString(lpObj);
  7371. #endif  //  NO_BSTR_HELPER
  7372.  
  7373.     return hr;
  7374. }
  7375.  
  7376.  
  7377. VW_INLINE HRESULT CVisioCharacters::IsField(short FAR *lpRet)
  7378. {
  7379.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7380.     CHECK_IP(GetIP(), CVisioCharacters, IsField);
  7381.     if (NULL!=GetIP())
  7382.         hr= GetIP()->get_IsField(lpRet);
  7383.     CHECK_HRESULT(hr, CVisioCharacters, IsField);
  7384.     return hr;
  7385. }
  7386.  
  7387.  
  7388. VW_INLINE HRESULT CVisioCharacters::ParaProps(VW_CONST short CellIndex, VW_CONST short param02)
  7389. {
  7390.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7391.     CHECK_IP(GetIP(), CVisioCharacters, ParaProps);
  7392.     if (NULL!=GetIP())
  7393.         hr= GetIP()->put_ParaProps(CellIndex, param02);
  7394.     CHECK_HRESULT(hr, CVisioCharacters, ParaProps);
  7395.     return hr;
  7396. }
  7397.  
  7398.  
  7399. VW_INLINE HRESULT CVisioCharacters::ParaPropsRow(short BiasLorR, short FAR *lpRet)
  7400. {
  7401.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7402.     CHECK_IP(GetIP(), CVisioCharacters, ParaPropsRow);
  7403.     if (NULL!=GetIP())
  7404.         hr= GetIP()->get_ParaPropsRow(BiasLorR, lpRet);
  7405.     CHECK_HRESULT(hr, CVisioCharacters, ParaPropsRow);
  7406.     return hr;
  7407. }
  7408.  
  7409.  
  7410. VW_INLINE HRESULT CVisioCharacters::Paste()
  7411. {
  7412.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7413.     CHECK_IP(GetIP(), CVisioCharacters, Paste);
  7414.     if (NULL!=GetIP())
  7415.         hr= GetIP()->Paste();
  7416.     CHECK_HRESULT(hr, CVisioCharacters, Paste);
  7417.     return hr;
  7418. }
  7419.  
  7420.  
  7421. VW_INLINE HRESULT CVisioCharacters::TabPropsRow(short BiasLorR, short FAR *lpRet)
  7422. {
  7423.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7424.     CHECK_IP(GetIP(), CVisioCharacters, TabPropsRow);
  7425.     if (NULL!=GetIP())
  7426.         hr= GetIP()->get_TabPropsRow(BiasLorR, lpRet);
  7427.     CHECK_HRESULT(hr, CVisioCharacters, TabPropsRow);
  7428.     return hr;
  7429. }
  7430.  
  7431.  
  7432. VW_INLINE HRESULT CVisioCharacters::RunBegin(short RunType, long FAR *lpRet)
  7433. {
  7434.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7435.     CHECK_IP(GetIP(), CVisioCharacters, RunBegin);
  7436.     if (NULL!=GetIP())
  7437.         hr= GetIP()->get_RunBegin(RunType, lpRet);
  7438.     CHECK_HRESULT(hr, CVisioCharacters, RunBegin);
  7439.     return hr;
  7440. }
  7441.  
  7442.  
  7443. VW_INLINE HRESULT CVisioCharacters::RunEnd(short RunType, long FAR *lpRet)
  7444. {
  7445.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7446.     CHECK_IP(GetIP(), CVisioCharacters, RunEnd);
  7447.     if (NULL!=GetIP())
  7448.         hr= GetIP()->get_RunEnd(RunType, lpRet);
  7449.     CHECK_HRESULT(hr, CVisioCharacters, RunEnd);
  7450.     return hr;
  7451. }
  7452.  
  7453.  
  7454. VW_INLINE HRESULT CVisioCharacters::Shape(CVisioShape FAR &rWrap)
  7455. {
  7456.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7457.     IVShape FAR *lpObj= NULL;
  7458.  
  7459.     CHECK_IP(GetIP(), CVisioCharacters, Shape);
  7460.     if (NULL!=GetIP())
  7461.         hr= GetIP()->get_Shape(&lpObj);
  7462.     CHECK_HRESULT(hr, CVisioCharacters, Shape);
  7463.  
  7464.     rWrap= lpObj;
  7465.     if (NULL!=lpObj)
  7466.         lpObj->Release();
  7467.  
  7468.     return hr;
  7469. }
  7470.  
  7471.  
  7472. VW_INLINE HRESULT CVisioCharacters::Stat(short FAR *lpRet)
  7473. {
  7474.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7475.     CHECK_IP(GetIP(), CVisioCharacters, Stat);
  7476.     if (NULL!=GetIP())
  7477.         hr= GetIP()->get_Stat(lpRet);
  7478.     CHECK_HRESULT(hr, CVisioCharacters, Stat);
  7479.     return hr;
  7480. }
  7481.  
  7482.  
  7483. VW_INLINE HRESULT CVisioCharacters::TextAsString(BSTR_HELPER_CLASS FAR &rWrap)
  7484. {
  7485.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7486.     BSTR lpObj= NULL;
  7487.  
  7488.     CHECK_IP(GetIP(), CVisioCharacters, TextAsString);
  7489.     if (NULL!=GetIP())
  7490.         hr= GetIP()->get_TextAsString(&lpObj);
  7491.     CHECK_HRESULT(hr, CVisioCharacters, TextAsString);
  7492.  
  7493.     rWrap= lpObj;
  7494. #ifndef NO_BSTR_HELPER
  7495.     if (NULL!=lpObj)
  7496.         SysFreeString(lpObj);
  7497. #endif  //  NO_BSTR_HELPER
  7498.  
  7499.     return hr;
  7500. }
  7501.  
  7502.  
  7503. VW_INLINE HRESULT CVisioCharacters::putText(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  7504. {
  7505.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7506.     CHECK_IP(GetIP(), CVisioCharacters, putText);
  7507.     if (NULL!=GetIP())
  7508.         hr= GetIP()->put_Text(param01);
  7509.     CHECK_HRESULT(hr, CVisioCharacters, putText);
  7510.     return hr;
  7511. }
  7512.  
  7513.  
  7514. VW_INLINE HRESULT CVisioCharacters::Document(CVisioDocument FAR &rWrap)
  7515. {
  7516.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7517.     IVDocument FAR *lpObj= NULL;
  7518.  
  7519.     CHECK_IP(GetIP(), CVisioCharacters, Document);
  7520.     if (NULL!=GetIP())
  7521.         hr= GetIP()->get_Document(&lpObj);
  7522.     CHECK_HRESULT(hr, CVisioCharacters, Document);
  7523.  
  7524.     rWrap= lpObj;
  7525.     if (NULL!=lpObj)
  7526.         lpObj->Release();
  7527.  
  7528.     return hr;
  7529. }
  7530.  
  7531.  
  7532. VW_INLINE HRESULT CVisioCharacters::EventList(CVisioEventList FAR &rWrap)
  7533. {
  7534.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7535.     IVEventList FAR *lpObj= NULL;
  7536.  
  7537.     CHECK_IP(GetIP(), CVisioCharacters, EventList);
  7538.     if (NULL!=GetIP())
  7539.         hr= GetIP()->get_EventList(&lpObj);
  7540.     CHECK_HRESULT(hr, CVisioCharacters, EventList);
  7541.  
  7542.     rWrap= lpObj;
  7543.     if (NULL!=lpObj)
  7544.         lpObj->Release();
  7545.  
  7546.     return hr;
  7547. }
  7548.  
  7549.  
  7550. VW_INLINE HRESULT CVisioCharacters::PersistsEvents(short FAR *lpRet)
  7551. {
  7552.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7553.     CHECK_IP(GetIP(), CVisioCharacters, PersistsEvents);
  7554.     if (NULL!=GetIP())
  7555.         hr= GetIP()->get_PersistsEvents(lpRet);
  7556.     CHECK_HRESULT(hr, CVisioCharacters, PersistsEvents);
  7557.     return hr;
  7558. }
  7559.  
  7560.  
  7561. VW_INLINE HRESULT CVisioCharacters::getText(VARIANT_HELPER_CLASS FAR &rWrap)
  7562. {
  7563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7564.     VARIANT lpObj;
  7565.     VariantInit(&lpObj);
  7566.  
  7567.     CHECK_IP(GetIP(), CVisioCharacters, getText);
  7568.     if (NULL!=GetIP())
  7569.         hr= GetIP()->get_Text(&lpObj);
  7570.     CHECK_HRESULT(hr, CVisioCharacters, getText);
  7571.  
  7572. #ifdef NO_VARIANT_HELPER
  7573.     VariantCopy(&rWrap, &lpObj);
  7574. #else
  7575.     rWrap= lpObj;
  7576. #endif  //  NO_VARIANT_HELPER
  7577.  
  7578.     VariantClear(&lpObj);
  7579.  
  7580.     return hr;
  7581. }
  7582.  
  7583.  
  7584.  
  7585. //  ***************************************************************************
  7586. //  Implementation of class CVisioConnect
  7587.  
  7588. VW_INLINE HRESULT CVisioConnect::Application(CVisioApplication FAR &rWrap)
  7589. {
  7590.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7591.     IVApplication FAR *lpObj= NULL;
  7592.  
  7593.     CHECK_IP(GetIP(), CVisioConnect, Application);
  7594.     if (NULL!=GetIP())
  7595.         hr= GetIP()->get_Application(&lpObj);
  7596.     CHECK_HRESULT(hr, CVisioConnect, Application);
  7597.  
  7598.     rWrap= lpObj;
  7599.     if (NULL!=lpObj)
  7600.         lpObj->Release();
  7601.  
  7602.     return hr;
  7603. }
  7604.  
  7605.  
  7606. VW_INLINE HRESULT CVisioConnect::Stat(short FAR *lpRet)
  7607. {
  7608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7609.     CHECK_IP(GetIP(), CVisioConnect, Stat);
  7610.     if (NULL!=GetIP())
  7611.         hr= GetIP()->get_Stat(lpRet);
  7612.     CHECK_HRESULT(hr, CVisioConnect, Stat);
  7613.     return hr;
  7614. }
  7615.  
  7616.  
  7617. VW_INLINE HRESULT CVisioConnect::FromSheet(CVisioShape FAR &rWrap)
  7618. {
  7619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7620.     IVShape FAR *lpObj= NULL;
  7621.  
  7622.     CHECK_IP(GetIP(), CVisioConnect, FromSheet);
  7623.     if (NULL!=GetIP())
  7624.         hr= GetIP()->get_FromSheet(&lpObj);
  7625.     CHECK_HRESULT(hr, CVisioConnect, FromSheet);
  7626.  
  7627.     rWrap= lpObj;
  7628.     if (NULL!=lpObj)
  7629.         lpObj->Release();
  7630.  
  7631.     return hr;
  7632. }
  7633.  
  7634.  
  7635. VW_INLINE HRESULT CVisioConnect::ToSheet(CVisioShape FAR &rWrap)
  7636. {
  7637.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7638.     IVShape FAR *lpObj= NULL;
  7639.  
  7640.     CHECK_IP(GetIP(), CVisioConnect, ToSheet);
  7641.     if (NULL!=GetIP())
  7642.         hr= GetIP()->get_ToSheet(&lpObj);
  7643.     CHECK_HRESULT(hr, CVisioConnect, ToSheet);
  7644.  
  7645.     rWrap= lpObj;
  7646.     if (NULL!=lpObj)
  7647.         lpObj->Release();
  7648.  
  7649.     return hr;
  7650. }
  7651.  
  7652.  
  7653. VW_INLINE HRESULT CVisioConnect::FromCell(CVisioCell FAR &rWrap)
  7654. {
  7655.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7656.     IVCell FAR *lpObj= NULL;
  7657.  
  7658.     CHECK_IP(GetIP(), CVisioConnect, FromCell);
  7659.     if (NULL!=GetIP())
  7660.         hr= GetIP()->get_FromCell(&lpObj);
  7661.     CHECK_HRESULT(hr, CVisioConnect, FromCell);
  7662.  
  7663.     rWrap= lpObj;
  7664.     if (NULL!=lpObj)
  7665.         lpObj->Release();
  7666.  
  7667.     return hr;
  7668. }
  7669.  
  7670.  
  7671. VW_INLINE HRESULT CVisioConnect::ToCell(CVisioCell FAR &rWrap)
  7672. {
  7673.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7674.     IVCell FAR *lpObj= NULL;
  7675.  
  7676.     CHECK_IP(GetIP(), CVisioConnect, ToCell);
  7677.     if (NULL!=GetIP())
  7678.         hr= GetIP()->get_ToCell(&lpObj);
  7679.     CHECK_HRESULT(hr, CVisioConnect, ToCell);
  7680.  
  7681.     rWrap= lpObj;
  7682.     if (NULL!=lpObj)
  7683.         lpObj->Release();
  7684.  
  7685.     return hr;
  7686. }
  7687.  
  7688.  
  7689. VW_INLINE HRESULT CVisioConnect::FromPart(short FAR *lpRet)
  7690. {
  7691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7692.     CHECK_IP(GetIP(), CVisioConnect, FromPart);
  7693.     if (NULL!=GetIP())
  7694.         hr= GetIP()->get_FromPart(lpRet);
  7695.     CHECK_HRESULT(hr, CVisioConnect, FromPart);
  7696.     return hr;
  7697. }
  7698.  
  7699.  
  7700. VW_INLINE HRESULT CVisioConnect::ToPart(short FAR *lpRet)
  7701. {
  7702.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7703.     CHECK_IP(GetIP(), CVisioConnect, ToPart);
  7704.     if (NULL!=GetIP())
  7705.         hr= GetIP()->get_ToPart(lpRet);
  7706.     CHECK_HRESULT(hr, CVisioConnect, ToPart);
  7707.     return hr;
  7708. }
  7709.  
  7710.  
  7711. VW_INLINE HRESULT CVisioConnect::ObjectType(short FAR *lpRet)
  7712. {
  7713.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7714.     CHECK_IP(GetIP(), CVisioConnect, ObjectType);
  7715.     if (NULL!=GetIP())
  7716.         hr= GetIP()->get_ObjectType(lpRet);
  7717.     CHECK_HRESULT(hr, CVisioConnect, ObjectType);
  7718.     return hr;
  7719. }
  7720.  
  7721.  
  7722. VW_INLINE HRESULT CVisioConnect::Index(short FAR *lpRet)
  7723. {
  7724.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7725.     CHECK_IP(GetIP(), CVisioConnect, Index);
  7726.     if (NULL!=GetIP())
  7727.         hr= GetIP()->get_Index(lpRet);
  7728.     CHECK_HRESULT(hr, CVisioConnect, Index);
  7729.     return hr;
  7730. }
  7731.  
  7732.  
  7733. VW_INLINE HRESULT CVisioConnect::Document(CVisioDocument FAR &rWrap)
  7734. {
  7735.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7736.     IVDocument FAR *lpObj= NULL;
  7737.  
  7738.     CHECK_IP(GetIP(), CVisioConnect, Document);
  7739.     if (NULL!=GetIP())
  7740.         hr= GetIP()->get_Document(&lpObj);
  7741.     CHECK_HRESULT(hr, CVisioConnect, Document);
  7742.  
  7743.     rWrap= lpObj;
  7744.     if (NULL!=lpObj)
  7745.         lpObj->Release();
  7746.  
  7747.     return hr;
  7748. }
  7749.  
  7750.  
  7751.  
  7752. //  ***************************************************************************
  7753. //  Implementation of class CVisioConnects
  7754.  
  7755. VW_INLINE HRESULT CVisioConnects::Application(CVisioApplication FAR &rWrap)
  7756. {
  7757.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7758.     IVApplication FAR *lpObj= NULL;
  7759.  
  7760.     CHECK_IP(GetIP(), CVisioConnects, Application);
  7761.     if (NULL!=GetIP())
  7762.         hr= GetIP()->get_Application(&lpObj);
  7763.     CHECK_HRESULT(hr, CVisioConnects, Application);
  7764.  
  7765.     rWrap= lpObj;
  7766.     if (NULL!=lpObj)
  7767.         lpObj->Release();
  7768.  
  7769.     return hr;
  7770. }
  7771.  
  7772.  
  7773. VW_INLINE HRESULT CVisioConnects::Item(short Index, CVisioConnect FAR &rWrap)
  7774. {
  7775.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7776.     IVConnect FAR *lpObj= NULL;
  7777.  
  7778.     CHECK_IP(GetIP(), CVisioConnects, Item);
  7779.     if (NULL!=GetIP())
  7780.         hr= GetIP()->get_Item(Index, &lpObj);
  7781.     CHECK_HRESULT(hr, CVisioConnects, Item);
  7782.  
  7783.     rWrap= lpObj;
  7784.     if (NULL!=lpObj)
  7785.         lpObj->Release();
  7786.  
  7787.     return hr;
  7788. }
  7789.  
  7790.  
  7791. VW_INLINE HRESULT CVisioConnects::Count(short FAR *lpRet)
  7792. {
  7793.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7794.     CHECK_IP(GetIP(), CVisioConnects, Count);
  7795.     if (NULL!=GetIP())
  7796.         hr= GetIP()->get_Count(lpRet);
  7797.     CHECK_HRESULT(hr, CVisioConnects, Count);
  7798.     return hr;
  7799. }
  7800.  
  7801.  
  7802. VW_INLINE HRESULT CVisioConnects::FromSheet(CVisioShape FAR &rWrap)
  7803. {
  7804.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7805.     IVShape FAR *lpObj= NULL;
  7806.  
  7807.     CHECK_IP(GetIP(), CVisioConnects, FromSheet);
  7808.     if (NULL!=GetIP())
  7809.         hr= GetIP()->get_FromSheet(&lpObj);
  7810.     CHECK_HRESULT(hr, CVisioConnects, FromSheet);
  7811.  
  7812.     rWrap= lpObj;
  7813.     if (NULL!=lpObj)
  7814.         lpObj->Release();
  7815.  
  7816.     return hr;
  7817. }
  7818.  
  7819.  
  7820. VW_INLINE HRESULT CVisioConnects::ObjectType(short FAR *lpRet)
  7821. {
  7822.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7823.     CHECK_IP(GetIP(), CVisioConnects, ObjectType);
  7824.     if (NULL!=GetIP())
  7825.         hr= GetIP()->get_ObjectType(lpRet);
  7826.     CHECK_HRESULT(hr, CVisioConnects, ObjectType);
  7827.     return hr;
  7828. }
  7829.  
  7830.  
  7831. VW_INLINE HRESULT CVisioConnects::Document(CVisioDocument FAR &rWrap)
  7832. {
  7833.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7834.     IVDocument FAR *lpObj= NULL;
  7835.  
  7836.     CHECK_IP(GetIP(), CVisioConnects, Document);
  7837.     if (NULL!=GetIP())
  7838.         hr= GetIP()->get_Document(&lpObj);
  7839.     CHECK_HRESULT(hr, CVisioConnects, Document);
  7840.  
  7841.     rWrap= lpObj;
  7842.     if (NULL!=lpObj)
  7843.         lpObj->Release();
  7844.  
  7845.     return hr;
  7846. }
  7847.  
  7848.  
  7849. VW_INLINE HRESULT CVisioConnects::Stat(short FAR *lpRet)
  7850. {
  7851.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7852.     CHECK_IP(GetIP(), CVisioConnects, Stat);
  7853.     if (NULL!=GetIP())
  7854.         hr= GetIP()->get_Stat(lpRet);
  7855.     CHECK_HRESULT(hr, CVisioConnects, Stat);
  7856.     return hr;
  7857. }
  7858.  
  7859.  
  7860. VW_INLINE HRESULT CVisioConnects::ToSheet(CVisioShape FAR &rWrap)
  7861. {
  7862.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7863.     IVShape FAR *lpObj= NULL;
  7864.  
  7865.     CHECK_IP(GetIP(), CVisioConnects, ToSheet);
  7866.     if (NULL!=GetIP())
  7867.         hr= GetIP()->get_ToSheet(&lpObj);
  7868.     CHECK_HRESULT(hr, CVisioConnects, ToSheet);
  7869.  
  7870.     rWrap= lpObj;
  7871.     if (NULL!=lpObj)
  7872.         lpObj->Release();
  7873.  
  7874.     return hr;
  7875. }
  7876.  
  7877.  
  7878.  
  7879. //  ***************************************************************************
  7880. //  Implementation of class CVisioDocument
  7881.  
  7882. VW_INLINE HRESULT CVisioDocument::Application(CVisioApplication FAR &rWrap)
  7883. {
  7884.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7885.     IVApplication FAR *lpObj= NULL;
  7886.  
  7887.     CHECK_IP(GetIP(), CVisioDocument, Application);
  7888.     if (NULL!=GetIP())
  7889.         hr= GetIP()->get_Application(&lpObj);
  7890.     CHECK_HRESULT(hr, CVisioDocument, Application);
  7891.  
  7892.     rWrap= lpObj;
  7893.     if (NULL!=lpObj)
  7894.         lpObj->Release();
  7895.  
  7896.     return hr;
  7897. }
  7898.  
  7899.  
  7900. VW_INLINE HRESULT CVisioDocument::Stat(short FAR *lpRet)
  7901. {
  7902.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7903.     CHECK_IP(GetIP(), CVisioDocument, Stat);
  7904.     if (NULL!=GetIP())
  7905.         hr= GetIP()->get_Stat(lpRet);
  7906.     CHECK_HRESULT(hr, CVisioDocument, Stat);
  7907.     return hr;
  7908. }
  7909.  
  7910.  
  7911. VW_INLINE HRESULT CVisioDocument::ObjectType(short FAR *lpRet)
  7912. {
  7913.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7914.     CHECK_IP(GetIP(), CVisioDocument, ObjectType);
  7915.     if (NULL!=GetIP())
  7916.         hr= GetIP()->get_ObjectType(lpRet);
  7917.     CHECK_HRESULT(hr, CVisioDocument, ObjectType);
  7918.     return hr;
  7919. }
  7920.  
  7921.  
  7922. VW_INLINE HRESULT CVisioDocument::InPlace(short FAR *lpRet)
  7923. {
  7924.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7925.     CHECK_IP(GetIP(), CVisioDocument, InPlace);
  7926.     if (NULL!=GetIP())
  7927.         hr= GetIP()->get_InPlace(lpRet);
  7928.     CHECK_HRESULT(hr, CVisioDocument, InPlace);
  7929.     return hr;
  7930. }
  7931.  
  7932.  
  7933. VW_INLINE HRESULT CVisioDocument::Masters(CVisioMasters FAR &rWrap)
  7934. {
  7935.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7936.     IVMasters FAR *lpObj= NULL;
  7937.  
  7938.     CHECK_IP(GetIP(), CVisioDocument, Masters);
  7939.     if (NULL!=GetIP())
  7940.         hr= GetIP()->get_Masters(&lpObj);
  7941.     CHECK_HRESULT(hr, CVisioDocument, Masters);
  7942.  
  7943.     rWrap= lpObj;
  7944.     if (NULL!=lpObj)
  7945.         lpObj->Release();
  7946.  
  7947.     return hr;
  7948. }
  7949.  
  7950.  
  7951. VW_INLINE HRESULT CVisioDocument::Pages(CVisioPages FAR &rWrap)
  7952. {
  7953.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7954.     IVPages FAR *lpObj= NULL;
  7955.  
  7956.     CHECK_IP(GetIP(), CVisioDocument, Pages);
  7957.     if (NULL!=GetIP())
  7958.         hr= GetIP()->get_Pages(&lpObj);
  7959.     CHECK_HRESULT(hr, CVisioDocument, Pages);
  7960.  
  7961.     rWrap= lpObj;
  7962.     if (NULL!=lpObj)
  7963.         lpObj->Release();
  7964.  
  7965.     return hr;
  7966. }
  7967.  
  7968.  
  7969. VW_INLINE HRESULT CVisioDocument::Styles(CVisioStyles FAR &rWrap)
  7970. {
  7971.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7972.     IVStyles FAR *lpObj= NULL;
  7973.  
  7974.     CHECK_IP(GetIP(), CVisioDocument, Styles);
  7975.     if (NULL!=GetIP())
  7976.         hr= GetIP()->get_Styles(&lpObj);
  7977.     CHECK_HRESULT(hr, CVisioDocument, Styles);
  7978.  
  7979.     rWrap= lpObj;
  7980.     if (NULL!=lpObj)
  7981.         lpObj->Release();
  7982.  
  7983.     return hr;
  7984. }
  7985.  
  7986.  
  7987. VW_INLINE HRESULT CVisioDocument::Name(BSTR_HELPER_CLASS FAR &rWrap)
  7988. {
  7989.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7990.     BSTR lpObj= NULL;
  7991.  
  7992.     CHECK_IP(GetIP(), CVisioDocument, Name);
  7993.     if (NULL!=GetIP())
  7994.         hr= GetIP()->get_Name(&lpObj);
  7995.     CHECK_HRESULT(hr, CVisioDocument, Name);
  7996.  
  7997.     rWrap= lpObj;
  7998. #ifndef NO_BSTR_HELPER
  7999.     if (NULL!=lpObj)
  8000.         SysFreeString(lpObj);
  8001. #endif  //  NO_BSTR_HELPER
  8002.  
  8003.     return hr;
  8004. }
  8005.  
  8006.  
  8007. VW_INLINE HRESULT CVisioDocument::Path(BSTR_HELPER_CLASS FAR &rWrap)
  8008. {
  8009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8010.     BSTR lpObj= NULL;
  8011.  
  8012.     CHECK_IP(GetIP(), CVisioDocument, Path);
  8013.     if (NULL!=GetIP())
  8014.         hr= GetIP()->get_Path(&lpObj);
  8015.     CHECK_HRESULT(hr, CVisioDocument, Path);
  8016.  
  8017.     rWrap= lpObj;
  8018. #ifndef NO_BSTR_HELPER
  8019.     if (NULL!=lpObj)
  8020.         SysFreeString(lpObj);
  8021. #endif  //  NO_BSTR_HELPER
  8022.  
  8023.     return hr;
  8024. }
  8025.  
  8026.  
  8027. VW_INLINE HRESULT CVisioDocument::FullName(BSTR_HELPER_CLASS FAR &rWrap)
  8028. {
  8029.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8030.     BSTR lpObj= NULL;
  8031.  
  8032.     CHECK_IP(GetIP(), CVisioDocument, FullName);
  8033.     if (NULL!=GetIP())
  8034.         hr= GetIP()->get_FullName(&lpObj);
  8035.     CHECK_HRESULT(hr, CVisioDocument, FullName);
  8036.  
  8037.     rWrap= lpObj;
  8038. #ifndef NO_BSTR_HELPER
  8039.     if (NULL!=lpObj)
  8040.         SysFreeString(lpObj);
  8041. #endif  //  NO_BSTR_HELPER
  8042.  
  8043.     return hr;
  8044. }
  8045.  
  8046.  
  8047. VW_INLINE HRESULT CVisioDocument::Drop(IUnknown FAR *ObjectToDrop, short xPos, short yPos, CVisioMaster FAR &rWrap)
  8048. {
  8049.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8050.     IVMaster FAR *lpObj= NULL;
  8051.  
  8052.     CHECK_IP(GetIP(), CVisioDocument, Drop);
  8053.     if (NULL!=GetIP())
  8054.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpObj);
  8055.     CHECK_HRESULT(hr, CVisioDocument, Drop);
  8056.  
  8057.     rWrap= lpObj;
  8058.     if (NULL!=lpObj)
  8059.         lpObj->Release();
  8060.  
  8061.     return hr;
  8062. }
  8063.  
  8064.  
  8065. VW_INLINE HRESULT CVisioDocument::Index(short FAR *lpRet)
  8066. {
  8067.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8068.     CHECK_IP(GetIP(), CVisioDocument, Index);
  8069.     if (NULL!=GetIP())
  8070.         hr= GetIP()->get_Index(lpRet);
  8071.     CHECK_HRESULT(hr, CVisioDocument, Index);
  8072.     return hr;
  8073. }
  8074.  
  8075.  
  8076. VW_INLINE HRESULT CVisioDocument::getSaved(short FAR *lpRet)
  8077. {
  8078.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8079.     CHECK_IP(GetIP(), CVisioDocument, getSaved);
  8080.     if (NULL!=GetIP())
  8081.         hr= GetIP()->get_Saved(lpRet);
  8082.     CHECK_HRESULT(hr, CVisioDocument, getSaved);
  8083.     return hr;
  8084. }
  8085.  
  8086.  
  8087. VW_INLINE HRESULT CVisioDocument::putSaved(VW_CONST short param01)
  8088. {
  8089.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8090.     CHECK_IP(GetIP(), CVisioDocument, putSaved);
  8091.     if (NULL!=GetIP())
  8092.         hr= GetIP()->put_Saved(param01);
  8093.     CHECK_HRESULT(hr, CVisioDocument, putSaved);
  8094.     return hr;
  8095. }
  8096.  
  8097.  
  8098. VW_INLINE HRESULT CVisioDocument::ReadOnly(short FAR *lpRet)
  8099. {
  8100.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8101.     CHECK_IP(GetIP(), CVisioDocument, ReadOnly);
  8102.     if (NULL!=GetIP())
  8103.         hr= GetIP()->get_ReadOnly(lpRet);
  8104.     CHECK_HRESULT(hr, CVisioDocument, ReadOnly);
  8105.     return hr;
  8106. }
  8107.  
  8108.  
  8109. VW_INLINE HRESULT CVisioDocument::Save(short FAR *lpRet)
  8110. {
  8111.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8112.     CHECK_IP(GetIP(), CVisioDocument, Save);
  8113.     if (NULL!=GetIP())
  8114.         hr= GetIP()->Save(lpRet);
  8115.     CHECK_HRESULT(hr, CVisioDocument, Save);
  8116.     return hr;
  8117. }
  8118.  
  8119.  
  8120. VW_INLINE HRESULT CVisioDocument::SaveAs(BSTR_HELPER_CLASS FAR &FileName, short FAR *lpRet)
  8121. {
  8122.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8123.     CHECK_IP(GetIP(), CVisioDocument, SaveAs);
  8124.     if (NULL!=GetIP())
  8125.         hr= GetIP()->SaveAs(FileName, lpRet);
  8126.     CHECK_HRESULT(hr, CVisioDocument, SaveAs);
  8127.     return hr;
  8128. }
  8129.  
  8130.  
  8131. VW_INLINE HRESULT CVisioDocument::getVersion(long FAR *lpRet)
  8132. {
  8133.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8134.     CHECK_IP(GetIP(), CVisioDocument, getVersion);
  8135.     if (NULL!=GetIP())
  8136.         hr= GetIP()->get_Version(lpRet);
  8137.     CHECK_HRESULT(hr, CVisioDocument, getVersion);
  8138.     return hr;
  8139. }
  8140.  
  8141.  
  8142. VW_INLINE HRESULT CVisioDocument::putVersion(VW_CONST long param01)
  8143. {
  8144.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8145.     CHECK_IP(GetIP(), CVisioDocument, putVersion);
  8146.     if (NULL!=GetIP())
  8147.         hr= GetIP()->put_Version(param01);
  8148.     CHECK_HRESULT(hr, CVisioDocument, putVersion);
  8149.     return hr;
  8150. }
  8151.  
  8152.  
  8153. VW_INLINE HRESULT CVisioDocument::getTitle(BSTR_HELPER_CLASS FAR &rWrap)
  8154. {
  8155.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8156.     BSTR lpObj= NULL;
  8157.  
  8158.     CHECK_IP(GetIP(), CVisioDocument, getTitle);
  8159.     if (NULL!=GetIP())
  8160.         hr= GetIP()->get_Title(&lpObj);
  8161.     CHECK_HRESULT(hr, CVisioDocument, getTitle);
  8162.  
  8163.     rWrap= lpObj;
  8164. #ifndef NO_BSTR_HELPER
  8165.     if (NULL!=lpObj)
  8166.         SysFreeString(lpObj);
  8167. #endif  //  NO_BSTR_HELPER
  8168.  
  8169.     return hr;
  8170. }
  8171.  
  8172.  
  8173. VW_INLINE HRESULT CVisioDocument::putTitle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8174. {
  8175.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8176.     CHECK_IP(GetIP(), CVisioDocument, putTitle);
  8177.     if (NULL!=GetIP())
  8178.         hr= GetIP()->put_Title(param01);
  8179.     CHECK_HRESULT(hr, CVisioDocument, putTitle);
  8180.     return hr;
  8181. }
  8182.  
  8183.  
  8184. VW_INLINE HRESULT CVisioDocument::getSubject(BSTR_HELPER_CLASS FAR &rWrap)
  8185. {
  8186.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8187.     BSTR lpObj= NULL;
  8188.  
  8189.     CHECK_IP(GetIP(), CVisioDocument, getSubject);
  8190.     if (NULL!=GetIP())
  8191.         hr= GetIP()->get_Subject(&lpObj);
  8192.     CHECK_HRESULT(hr, CVisioDocument, getSubject);
  8193.  
  8194.     rWrap= lpObj;
  8195. #ifndef NO_BSTR_HELPER
  8196.     if (NULL!=lpObj)
  8197.         SysFreeString(lpObj);
  8198. #endif  //  NO_BSTR_HELPER
  8199.  
  8200.     return hr;
  8201. }
  8202.  
  8203.  
  8204. VW_INLINE HRESULT CVisioDocument::putSubject(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8205. {
  8206.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8207.     CHECK_IP(GetIP(), CVisioDocument, putSubject);
  8208.     if (NULL!=GetIP())
  8209.         hr= GetIP()->put_Subject(param01);
  8210.     CHECK_HRESULT(hr, CVisioDocument, putSubject);
  8211.     return hr;
  8212. }
  8213.  
  8214.  
  8215. VW_INLINE HRESULT CVisioDocument::getCreator(BSTR_HELPER_CLASS FAR &rWrap)
  8216. {
  8217.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8218.     BSTR lpObj= NULL;
  8219.  
  8220.     CHECK_IP(GetIP(), CVisioDocument, getCreator);
  8221.     if (NULL!=GetIP())
  8222.         hr= GetIP()->get_Creator(&lpObj);
  8223.     CHECK_HRESULT(hr, CVisioDocument, getCreator);
  8224.  
  8225.     rWrap= lpObj;
  8226. #ifndef NO_BSTR_HELPER
  8227.     if (NULL!=lpObj)
  8228.         SysFreeString(lpObj);
  8229. #endif  //  NO_BSTR_HELPER
  8230.  
  8231.     return hr;
  8232. }
  8233.  
  8234.  
  8235. VW_INLINE HRESULT CVisioDocument::putCreator(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8236. {
  8237.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8238.     CHECK_IP(GetIP(), CVisioDocument, putCreator);
  8239.     if (NULL!=GetIP())
  8240.         hr= GetIP()->put_Creator(param01);
  8241.     CHECK_HRESULT(hr, CVisioDocument, putCreator);
  8242.     return hr;
  8243. }
  8244.  
  8245.  
  8246. VW_INLINE HRESULT CVisioDocument::getKeywords(BSTR_HELPER_CLASS FAR &rWrap)
  8247. {
  8248.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8249.     BSTR lpObj= NULL;
  8250.  
  8251.     CHECK_IP(GetIP(), CVisioDocument, getKeywords);
  8252.     if (NULL!=GetIP())
  8253.         hr= GetIP()->get_Keywords(&lpObj);
  8254.     CHECK_HRESULT(hr, CVisioDocument, getKeywords);
  8255.  
  8256.     rWrap= lpObj;
  8257. #ifndef NO_BSTR_HELPER
  8258.     if (NULL!=lpObj)
  8259.         SysFreeString(lpObj);
  8260. #endif  //  NO_BSTR_HELPER
  8261.  
  8262.     return hr;
  8263. }
  8264.  
  8265.  
  8266. VW_INLINE HRESULT CVisioDocument::putKeywords(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8267. {
  8268.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8269.     CHECK_IP(GetIP(), CVisioDocument, putKeywords);
  8270.     if (NULL!=GetIP())
  8271.         hr= GetIP()->put_Keywords(param01);
  8272.     CHECK_HRESULT(hr, CVisioDocument, putKeywords);
  8273.     return hr;
  8274. }
  8275.  
  8276.  
  8277. VW_INLINE HRESULT CVisioDocument::getDescription(BSTR_HELPER_CLASS FAR &rWrap)
  8278. {
  8279.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8280.     BSTR lpObj= NULL;
  8281.  
  8282.     CHECK_IP(GetIP(), CVisioDocument, getDescription);
  8283.     if (NULL!=GetIP())
  8284.         hr= GetIP()->get_Description(&lpObj);
  8285.     CHECK_HRESULT(hr, CVisioDocument, getDescription);
  8286.  
  8287.     rWrap= lpObj;
  8288. #ifndef NO_BSTR_HELPER
  8289.     if (NULL!=lpObj)
  8290.         SysFreeString(lpObj);
  8291. #endif  //  NO_BSTR_HELPER
  8292.  
  8293.     return hr;
  8294. }
  8295.  
  8296.  
  8297. VW_INLINE HRESULT CVisioDocument::putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8298. {
  8299.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8300.     CHECK_IP(GetIP(), CVisioDocument, putDescription);
  8301.     if (NULL!=GetIP())
  8302.         hr= GetIP()->put_Description(param01);
  8303.     CHECK_HRESULT(hr, CVisioDocument, putDescription);
  8304.     return hr;
  8305. }
  8306.  
  8307.  
  8308. VW_INLINE HRESULT CVisioDocument::Print()
  8309. {
  8310.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8311.     CHECK_IP(GetIP(), CVisioDocument, Print);
  8312.     if (NULL!=GetIP())
  8313.         hr= GetIP()->Print();
  8314.     CHECK_HRESULT(hr, CVisioDocument, Print);
  8315.     return hr;
  8316. }
  8317.  
  8318.  
  8319. VW_INLINE HRESULT CVisioDocument::Close()
  8320. {
  8321.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8322.     CHECK_IP(GetIP(), CVisioDocument, Close);
  8323.     if (NULL!=GetIP())
  8324.         hr= GetIP()->Close();
  8325.     CHECK_HRESULT(hr, CVisioDocument, Close);
  8326.     return hr;
  8327. }
  8328.  
  8329.  
  8330. VW_INLINE HRESULT CVisioDocument::CustomMenus(CVisioUIObject FAR &rWrap)
  8331. {
  8332.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8333.     IVUIObject FAR *lpObj= NULL;
  8334.  
  8335.     CHECK_IP(GetIP(), CVisioDocument, CustomMenus);
  8336.     if (NULL!=GetIP())
  8337.         hr= GetIP()->get_CustomMenus(&lpObj);
  8338.     CHECK_HRESULT(hr, CVisioDocument, CustomMenus);
  8339.  
  8340.     rWrap= lpObj;
  8341.     if (NULL!=lpObj)
  8342.         lpObj->Release();
  8343.  
  8344.     return hr;
  8345. }
  8346.  
  8347.  
  8348. VW_INLINE HRESULT CVisioDocument::SetCustomMenus(CVisioUIObject FAR &MenusObject)
  8349. {
  8350.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8351.     CHECK_IP(GetIP(), CVisioDocument, SetCustomMenus);
  8352.     if (NULL!=GetIP())
  8353.         hr= GetIP()->SetCustomMenus(MenusObject);
  8354.     CHECK_HRESULT(hr, CVisioDocument, SetCustomMenus);
  8355.     return hr;
  8356. }
  8357.  
  8358.  
  8359. VW_INLINE HRESULT CVisioDocument::getCustomMenusFile(BSTR_HELPER_CLASS FAR &rWrap)
  8360. {
  8361.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8362.     BSTR lpObj= NULL;
  8363.  
  8364.     CHECK_IP(GetIP(), CVisioDocument, getCustomMenusFile);
  8365.     if (NULL!=GetIP())
  8366.         hr= GetIP()->get_CustomMenusFile(&lpObj);
  8367.     CHECK_HRESULT(hr, CVisioDocument, getCustomMenusFile);
  8368.  
  8369.     rWrap= lpObj;
  8370. #ifndef NO_BSTR_HELPER
  8371.     if (NULL!=lpObj)
  8372.         SysFreeString(lpObj);
  8373. #endif  //  NO_BSTR_HELPER
  8374.  
  8375.     return hr;
  8376. }
  8377.  
  8378.  
  8379. VW_INLINE HRESULT CVisioDocument::putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8380. {
  8381.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8382.     CHECK_IP(GetIP(), CVisioDocument, putCustomMenusFile);
  8383.     if (NULL!=GetIP())
  8384.         hr= GetIP()->put_CustomMenusFile(param01);
  8385.     CHECK_HRESULT(hr, CVisioDocument, putCustomMenusFile);
  8386.     return hr;
  8387. }
  8388.  
  8389.  
  8390. VW_INLINE HRESULT CVisioDocument::ClearCustomMenus()
  8391. {
  8392.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8393.     CHECK_IP(GetIP(), CVisioDocument, ClearCustomMenus);
  8394.     if (NULL!=GetIP())
  8395.         hr= GetIP()->ClearCustomMenus();
  8396.     CHECK_HRESULT(hr, CVisioDocument, ClearCustomMenus);
  8397.     return hr;
  8398. }
  8399.  
  8400.  
  8401. VW_INLINE HRESULT CVisioDocument::CustomToolbars(CVisioUIObject FAR &rWrap)
  8402. {
  8403.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8404.     IVUIObject FAR *lpObj= NULL;
  8405.  
  8406.     CHECK_IP(GetIP(), CVisioDocument, CustomToolbars);
  8407.     if (NULL!=GetIP())
  8408.         hr= GetIP()->get_CustomToolbars(&lpObj);
  8409.     CHECK_HRESULT(hr, CVisioDocument, CustomToolbars);
  8410.  
  8411.     rWrap= lpObj;
  8412.     if (NULL!=lpObj)
  8413.         lpObj->Release();
  8414.  
  8415.     return hr;
  8416. }
  8417.  
  8418.  
  8419. VW_INLINE HRESULT CVisioDocument::SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject)
  8420. {
  8421.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8422.     CHECK_IP(GetIP(), CVisioDocument, SetCustomToolbars);
  8423.     if (NULL!=GetIP())
  8424.         hr= GetIP()->SetCustomToolbars(ToolbarsObject);
  8425.     CHECK_HRESULT(hr, CVisioDocument, SetCustomToolbars);
  8426.     return hr;
  8427. }
  8428.  
  8429.  
  8430. VW_INLINE HRESULT CVisioDocument::getCustomToolbarsFile(BSTR_HELPER_CLASS FAR &rWrap)
  8431. {
  8432.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8433.     BSTR lpObj= NULL;
  8434.  
  8435.     CHECK_IP(GetIP(), CVisioDocument, getCustomToolbarsFile);
  8436.     if (NULL!=GetIP())
  8437.         hr= GetIP()->get_CustomToolbarsFile(&lpObj);
  8438.     CHECK_HRESULT(hr, CVisioDocument, getCustomToolbarsFile);
  8439.  
  8440.     rWrap= lpObj;
  8441. #ifndef NO_BSTR_HELPER
  8442.     if (NULL!=lpObj)
  8443.         SysFreeString(lpObj);
  8444. #endif  //  NO_BSTR_HELPER
  8445.  
  8446.     return hr;
  8447. }
  8448.  
  8449.  
  8450. VW_INLINE HRESULT CVisioDocument::putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8451. {
  8452.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8453.     CHECK_IP(GetIP(), CVisioDocument, putCustomToolbarsFile);
  8454.     if (NULL!=GetIP())
  8455.         hr= GetIP()->put_CustomToolbarsFile(param01);
  8456.     CHECK_HRESULT(hr, CVisioDocument, putCustomToolbarsFile);
  8457.     return hr;
  8458. }
  8459.  
  8460.  
  8461. VW_INLINE HRESULT CVisioDocument::ClearCustomToolbars()
  8462. {
  8463.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8464.     CHECK_IP(GetIP(), CVisioDocument, ClearCustomToolbars);
  8465.     if (NULL!=GetIP())
  8466.         hr= GetIP()->ClearCustomToolbars();
  8467.     CHECK_HRESULT(hr, CVisioDocument, ClearCustomToolbars);
  8468.     return hr;
  8469. }
  8470.  
  8471.  
  8472. VW_INLINE HRESULT CVisioDocument::Fonts(CVisioFonts FAR &rWrap)
  8473. {
  8474.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8475.     IVFonts FAR *lpObj= NULL;
  8476.  
  8477.     CHECK_IP(GetIP(), CVisioDocument, Fonts);
  8478.     if (NULL!=GetIP())
  8479.         hr= GetIP()->get_Fonts(&lpObj);
  8480.     CHECK_HRESULT(hr, CVisioDocument, Fonts);
  8481.  
  8482.     rWrap= lpObj;
  8483.     if (NULL!=lpObj)
  8484.         lpObj->Release();
  8485.  
  8486.     return hr;
  8487. }
  8488.  
  8489.  
  8490. VW_INLINE HRESULT CVisioDocument::Colors(CVisioColors FAR &rWrap)
  8491. {
  8492.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8493.     IVColors FAR *lpObj= NULL;
  8494.  
  8495.     CHECK_IP(GetIP(), CVisioDocument, Colors);
  8496.     if (NULL!=GetIP())
  8497.         hr= GetIP()->get_Colors(&lpObj);
  8498.     CHECK_HRESULT(hr, CVisioDocument, Colors);
  8499.  
  8500.     rWrap= lpObj;
  8501.     if (NULL!=lpObj)
  8502.         lpObj->Release();
  8503.  
  8504.     return hr;
  8505. }
  8506.  
  8507.  
  8508. VW_INLINE HRESULT CVisioDocument::EventList(CVisioEventList FAR &rWrap)
  8509. {
  8510.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8511.     IVEventList FAR *lpObj= NULL;
  8512.  
  8513.     CHECK_IP(GetIP(), CVisioDocument, EventList);
  8514.     if (NULL!=GetIP())
  8515.         hr= GetIP()->get_EventList(&lpObj);
  8516.     CHECK_HRESULT(hr, CVisioDocument, EventList);
  8517.  
  8518.     rWrap= lpObj;
  8519.     if (NULL!=lpObj)
  8520.         lpObj->Release();
  8521.  
  8522.     return hr;
  8523. }
  8524.  
  8525.  
  8526. VW_INLINE HRESULT CVisioDocument::Template(BSTR_HELPER_CLASS FAR &rWrap)
  8527. {
  8528.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8529.     BSTR lpObj= NULL;
  8530.  
  8531.     CHECK_IP(GetIP(), CVisioDocument, Template);
  8532.     if (NULL!=GetIP())
  8533.         hr= GetIP()->get_Template(&lpObj);
  8534.     CHECK_HRESULT(hr, CVisioDocument, Template);
  8535.  
  8536.     rWrap= lpObj;
  8537. #ifndef NO_BSTR_HELPER
  8538.     if (NULL!=lpObj)
  8539.         SysFreeString(lpObj);
  8540. #endif  //  NO_BSTR_HELPER
  8541.  
  8542.     return hr;
  8543. }
  8544.  
  8545.  
  8546. VW_INLINE HRESULT CVisioDocument::SaveAsEx(BSTR_HELPER_CLASS FAR &FileName, short SaveFlags)
  8547. {
  8548.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8549.     CHECK_IP(GetIP(), CVisioDocument, SaveAsEx);
  8550.     if (NULL!=GetIP())
  8551.         hr= GetIP()->SaveAsEx(FileName, SaveFlags);
  8552.     CHECK_HRESULT(hr, CVisioDocument, SaveAsEx);
  8553.     return hr;
  8554. }
  8555.  
  8556.  
  8557. VW_INLINE HRESULT CVisioDocument::getSavePreviewMode(short FAR *lpRet)
  8558. {
  8559.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8560.     CHECK_IP(GetIP(), CVisioDocument, getSavePreviewMode);
  8561.     if (NULL!=GetIP())
  8562.         hr= GetIP()->get_SavePreviewMode(lpRet);
  8563.     CHECK_HRESULT(hr, CVisioDocument, getSavePreviewMode);
  8564.     return hr;
  8565. }
  8566.  
  8567.  
  8568. VW_INLINE HRESULT CVisioDocument::putSavePreviewMode(VW_CONST short param01)
  8569. {
  8570.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8571.     CHECK_IP(GetIP(), CVisioDocument, putSavePreviewMode);
  8572.     if (NULL!=GetIP())
  8573.         hr= GetIP()->put_SavePreviewMode(param01);
  8574.     CHECK_HRESULT(hr, CVisioDocument, putSavePreviewMode);
  8575.     return hr;
  8576. }
  8577.  
  8578.  
  8579. VW_INLINE HRESULT CVisioDocument::GetIcon(short ID, BSTR_HELPER_CLASS FAR &FileName)
  8580. {
  8581.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8582.     CHECK_IP(GetIP(), CVisioDocument, GetIcon);
  8583.     if (NULL!=GetIP())
  8584.         hr= GetIP()->GetIcon(ID, FileName);
  8585.     CHECK_HRESULT(hr, CVisioDocument, GetIcon);
  8586.     return hr;
  8587. }
  8588.  
  8589.  
  8590. VW_INLINE HRESULT CVisioDocument::SetIcon(short ID, short Index, BSTR_HELPER_CLASS FAR &FileName)
  8591. {
  8592.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8593.     CHECK_IP(GetIP(), CVisioDocument, SetIcon);
  8594.     if (NULL!=GetIP())
  8595.         hr= GetIP()->SetIcon(ID, Index, FileName);
  8596.     CHECK_HRESULT(hr, CVisioDocument, SetIcon);
  8597.     return hr;
  8598. }
  8599.  
  8600.  
  8601. VW_INLINE HRESULT CVisioDocument::getLeftMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  8602. {
  8603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8604.     CHECK_IP(GetIP(), CVisioDocument, getLeftMargin);
  8605.     if (NULL!=GetIP())
  8606.         hr= GetIP()->get_LeftMargin(UnitsNameOrCode, lpRet);
  8607.     CHECK_HRESULT(hr, CVisioDocument, getLeftMargin);
  8608.     return hr;
  8609. }
  8610.  
  8611.  
  8612. VW_INLINE HRESULT CVisioDocument::putLeftMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8613. {
  8614.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8615.     CHECK_IP(GetIP(), CVisioDocument, putLeftMargin);
  8616.     if (NULL!=GetIP())
  8617.         hr= GetIP()->put_LeftMargin(UnitsNameOrCode, param02);
  8618.     CHECK_HRESULT(hr, CVisioDocument, putLeftMargin);
  8619.     return hr;
  8620. }
  8621.  
  8622.  
  8623. VW_INLINE HRESULT CVisioDocument::getRightMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  8624. {
  8625.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8626.     CHECK_IP(GetIP(), CVisioDocument, getRightMargin);
  8627.     if (NULL!=GetIP())
  8628.         hr= GetIP()->get_RightMargin(UnitsNameOrCode, lpRet);
  8629.     CHECK_HRESULT(hr, CVisioDocument, getRightMargin);
  8630.     return hr;
  8631. }
  8632.  
  8633.  
  8634. VW_INLINE HRESULT CVisioDocument::putRightMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8635. {
  8636.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8637.     CHECK_IP(GetIP(), CVisioDocument, putRightMargin);
  8638.     if (NULL!=GetIP())
  8639.         hr= GetIP()->put_RightMargin(UnitsNameOrCode, param02);
  8640.     CHECK_HRESULT(hr, CVisioDocument, putRightMargin);
  8641.     return hr;
  8642. }
  8643.  
  8644.  
  8645. VW_INLINE HRESULT CVisioDocument::getTopMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  8646. {
  8647.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8648.     CHECK_IP(GetIP(), CVisioDocument, getTopMargin);
  8649.     if (NULL!=GetIP())
  8650.         hr= GetIP()->get_TopMargin(UnitsNameOrCode, lpRet);
  8651.     CHECK_HRESULT(hr, CVisioDocument, getTopMargin);
  8652.     return hr;
  8653. }
  8654.  
  8655.  
  8656. VW_INLINE HRESULT CVisioDocument::putTopMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8657. {
  8658.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8659.     CHECK_IP(GetIP(), CVisioDocument, putTopMargin);
  8660.     if (NULL!=GetIP())
  8661.         hr= GetIP()->put_TopMargin(UnitsNameOrCode, param02);
  8662.     CHECK_HRESULT(hr, CVisioDocument, putTopMargin);
  8663.     return hr;
  8664. }
  8665.  
  8666.  
  8667. VW_INLINE HRESULT CVisioDocument::getBottomMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  8668. {
  8669.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8670.     CHECK_IP(GetIP(), CVisioDocument, getBottomMargin);
  8671.     if (NULL!=GetIP())
  8672.         hr= GetIP()->get_BottomMargin(UnitsNameOrCode, lpRet);
  8673.     CHECK_HRESULT(hr, CVisioDocument, getBottomMargin);
  8674.     return hr;
  8675. }
  8676.  
  8677.  
  8678. VW_INLINE HRESULT CVisioDocument::putBottomMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8679. {
  8680.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8681.     CHECK_IP(GetIP(), CVisioDocument, putBottomMargin);
  8682.     if (NULL!=GetIP())
  8683.         hr= GetIP()->put_BottomMargin(UnitsNameOrCode, param02);
  8684.     CHECK_HRESULT(hr, CVisioDocument, putBottomMargin);
  8685.     return hr;
  8686. }
  8687.  
  8688.  
  8689. VW_INLINE HRESULT CVisioDocument::getPrintLandscape(short FAR *lpRet)
  8690. {
  8691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8692.     CHECK_IP(GetIP(), CVisioDocument, getPrintLandscape);
  8693.     if (NULL!=GetIP())
  8694.         hr= GetIP()->get_PrintLandscape(lpRet);
  8695.     CHECK_HRESULT(hr, CVisioDocument, getPrintLandscape);
  8696.     return hr;
  8697. }
  8698.  
  8699.  
  8700. VW_INLINE HRESULT CVisioDocument::putPrintLandscape(VW_CONST short param01)
  8701. {
  8702.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8703.     CHECK_IP(GetIP(), CVisioDocument, putPrintLandscape);
  8704.     if (NULL!=GetIP())
  8705.         hr= GetIP()->put_PrintLandscape(param01);
  8706.     CHECK_HRESULT(hr, CVisioDocument, putPrintLandscape);
  8707.     return hr;
  8708. }
  8709.  
  8710.  
  8711. VW_INLINE HRESULT CVisioDocument::getPrintCenteredH(short FAR *lpRet)
  8712. {
  8713.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8714.     CHECK_IP(GetIP(), CVisioDocument, getPrintCenteredH);
  8715.     if (NULL!=GetIP())
  8716.         hr= GetIP()->get_PrintCenteredH(lpRet);
  8717.     CHECK_HRESULT(hr, CVisioDocument, getPrintCenteredH);
  8718.     return hr;
  8719. }
  8720.  
  8721.  
  8722. VW_INLINE HRESULT CVisioDocument::putPrintCenteredH(VW_CONST short param01)
  8723. {
  8724.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8725.     CHECK_IP(GetIP(), CVisioDocument, putPrintCenteredH);
  8726.     if (NULL!=GetIP())
  8727.         hr= GetIP()->put_PrintCenteredH(param01);
  8728.     CHECK_HRESULT(hr, CVisioDocument, putPrintCenteredH);
  8729.     return hr;
  8730. }
  8731.  
  8732.  
  8733. VW_INLINE HRESULT CVisioDocument::getPrintCenteredV(short FAR *lpRet)
  8734. {
  8735.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8736.     CHECK_IP(GetIP(), CVisioDocument, getPrintCenteredV);
  8737.     if (NULL!=GetIP())
  8738.         hr= GetIP()->get_PrintCenteredV(lpRet);
  8739.     CHECK_HRESULT(hr, CVisioDocument, getPrintCenteredV);
  8740.     return hr;
  8741. }
  8742.  
  8743.  
  8744. VW_INLINE HRESULT CVisioDocument::putPrintCenteredV(VW_CONST short param01)
  8745. {
  8746.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8747.     CHECK_IP(GetIP(), CVisioDocument, putPrintCenteredV);
  8748.     if (NULL!=GetIP())
  8749.         hr= GetIP()->put_PrintCenteredV(param01);
  8750.     CHECK_HRESULT(hr, CVisioDocument, putPrintCenteredV);
  8751.     return hr;
  8752. }
  8753.  
  8754.  
  8755. VW_INLINE HRESULT CVisioDocument::getPrintScale(double FAR *lpRet)
  8756. {
  8757.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8758.     CHECK_IP(GetIP(), CVisioDocument, getPrintScale);
  8759.     if (NULL!=GetIP())
  8760.         hr= GetIP()->get_PrintScale(lpRet);
  8761.     CHECK_HRESULT(hr, CVisioDocument, getPrintScale);
  8762.     return hr;
  8763. }
  8764.  
  8765.  
  8766. VW_INLINE HRESULT CVisioDocument::putPrintScale(VW_CONST double param01)
  8767. {
  8768.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8769.     CHECK_IP(GetIP(), CVisioDocument, putPrintScale);
  8770.     if (NULL!=GetIP())
  8771.         hr= GetIP()->put_PrintScale(param01);
  8772.     CHECK_HRESULT(hr, CVisioDocument, putPrintScale);
  8773.     return hr;
  8774. }
  8775.  
  8776.  
  8777. VW_INLINE HRESULT CVisioDocument::getPrintFitOnPages(short FAR *lpRet)
  8778. {
  8779.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8780.     CHECK_IP(GetIP(), CVisioDocument, getPrintFitOnPages);
  8781.     if (NULL!=GetIP())
  8782.         hr= GetIP()->get_PrintFitOnPages(lpRet);
  8783.     CHECK_HRESULT(hr, CVisioDocument, getPrintFitOnPages);
  8784.     return hr;
  8785. }
  8786.  
  8787.  
  8788. VW_INLINE HRESULT CVisioDocument::putPrintFitOnPages(VW_CONST short param01)
  8789. {
  8790.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8791.     CHECK_IP(GetIP(), CVisioDocument, putPrintFitOnPages);
  8792.     if (NULL!=GetIP())
  8793.         hr= GetIP()->put_PrintFitOnPages(param01);
  8794.     CHECK_HRESULT(hr, CVisioDocument, putPrintFitOnPages);
  8795.     return hr;
  8796. }
  8797.  
  8798.  
  8799. VW_INLINE HRESULT CVisioDocument::getPrintPagesAcross(short FAR *lpRet)
  8800. {
  8801.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8802.     CHECK_IP(GetIP(), CVisioDocument, getPrintPagesAcross);
  8803.     if (NULL!=GetIP())
  8804.         hr= GetIP()->get_PrintPagesAcross(lpRet);
  8805.     CHECK_HRESULT(hr, CVisioDocument, getPrintPagesAcross);
  8806.     return hr;
  8807. }
  8808.  
  8809.  
  8810. VW_INLINE HRESULT CVisioDocument::putPrintPagesAcross(VW_CONST short param01)
  8811. {
  8812.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8813.     CHECK_IP(GetIP(), CVisioDocument, putPrintPagesAcross);
  8814.     if (NULL!=GetIP())
  8815.         hr= GetIP()->put_PrintPagesAcross(param01);
  8816.     CHECK_HRESULT(hr, CVisioDocument, putPrintPagesAcross);
  8817.     return hr;
  8818. }
  8819.  
  8820.  
  8821. VW_INLINE HRESULT CVisioDocument::getPrintPagesDown(short FAR *lpRet)
  8822. {
  8823.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8824.     CHECK_IP(GetIP(), CVisioDocument, getPrintPagesDown);
  8825.     if (NULL!=GetIP())
  8826.         hr= GetIP()->get_PrintPagesDown(lpRet);
  8827.     CHECK_HRESULT(hr, CVisioDocument, getPrintPagesDown);
  8828.     return hr;
  8829. }
  8830.  
  8831.  
  8832. VW_INLINE HRESULT CVisioDocument::putPrintPagesDown(VW_CONST short param01)
  8833. {
  8834.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8835.     CHECK_IP(GetIP(), CVisioDocument, putPrintPagesDown);
  8836.     if (NULL!=GetIP())
  8837.         hr= GetIP()->put_PrintPagesDown(param01);
  8838.     CHECK_HRESULT(hr, CVisioDocument, putPrintPagesDown);
  8839.     return hr;
  8840. }
  8841.  
  8842.  
  8843. VW_INLINE HRESULT CVisioDocument::getDefaultStyle(BSTR_HELPER_CLASS FAR &rWrap)
  8844. {
  8845.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8846.     BSTR lpObj= NULL;
  8847.  
  8848.     CHECK_IP(GetIP(), CVisioDocument, getDefaultStyle);
  8849.     if (NULL!=GetIP())
  8850.         hr= GetIP()->get_DefaultStyle(&lpObj);
  8851.     CHECK_HRESULT(hr, CVisioDocument, getDefaultStyle);
  8852.  
  8853.     rWrap= lpObj;
  8854. #ifndef NO_BSTR_HELPER
  8855.     if (NULL!=lpObj)
  8856.         SysFreeString(lpObj);
  8857. #endif  //  NO_BSTR_HELPER
  8858.  
  8859.     return hr;
  8860. }
  8861.  
  8862.  
  8863. VW_INLINE HRESULT CVisioDocument::putDefaultStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8864. {
  8865.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8866.     CHECK_IP(GetIP(), CVisioDocument, putDefaultStyle);
  8867.     if (NULL!=GetIP())
  8868.         hr= GetIP()->put_DefaultStyle(param01);
  8869.     CHECK_HRESULT(hr, CVisioDocument, putDefaultStyle);
  8870.     return hr;
  8871. }
  8872.  
  8873.  
  8874. VW_INLINE HRESULT CVisioDocument::getDefaultLineStyle(BSTR_HELPER_CLASS FAR &rWrap)
  8875. {
  8876.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8877.     BSTR lpObj= NULL;
  8878.  
  8879.     CHECK_IP(GetIP(), CVisioDocument, getDefaultLineStyle);
  8880.     if (NULL!=GetIP())
  8881.         hr= GetIP()->get_DefaultLineStyle(&lpObj);
  8882.     CHECK_HRESULT(hr, CVisioDocument, getDefaultLineStyle);
  8883.  
  8884.     rWrap= lpObj;
  8885. #ifndef NO_BSTR_HELPER
  8886.     if (NULL!=lpObj)
  8887.         SysFreeString(lpObj);
  8888. #endif  //  NO_BSTR_HELPER
  8889.  
  8890.     return hr;
  8891. }
  8892.  
  8893.  
  8894. VW_INLINE HRESULT CVisioDocument::putDefaultLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8895. {
  8896.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8897.     CHECK_IP(GetIP(), CVisioDocument, putDefaultLineStyle);
  8898.     if (NULL!=GetIP())
  8899.         hr= GetIP()->put_DefaultLineStyle(param01);
  8900.     CHECK_HRESULT(hr, CVisioDocument, putDefaultLineStyle);
  8901.     return hr;
  8902. }
  8903.  
  8904.  
  8905. VW_INLINE HRESULT CVisioDocument::getDefaultFillStyle(BSTR_HELPER_CLASS FAR &rWrap)
  8906. {
  8907.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8908.     BSTR lpObj= NULL;
  8909.  
  8910.     CHECK_IP(GetIP(), CVisioDocument, getDefaultFillStyle);
  8911.     if (NULL!=GetIP())
  8912.         hr= GetIP()->get_DefaultFillStyle(&lpObj);
  8913.     CHECK_HRESULT(hr, CVisioDocument, getDefaultFillStyle);
  8914.  
  8915.     rWrap= lpObj;
  8916. #ifndef NO_BSTR_HELPER
  8917.     if (NULL!=lpObj)
  8918.         SysFreeString(lpObj);
  8919. #endif  //  NO_BSTR_HELPER
  8920.  
  8921.     return hr;
  8922. }
  8923.  
  8924.  
  8925. VW_INLINE HRESULT CVisioDocument::putDefaultFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8926. {
  8927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8928.     CHECK_IP(GetIP(), CVisioDocument, putDefaultFillStyle);
  8929.     if (NULL!=GetIP())
  8930.         hr= GetIP()->put_DefaultFillStyle(param01);
  8931.     CHECK_HRESULT(hr, CVisioDocument, putDefaultFillStyle);
  8932.     return hr;
  8933. }
  8934.  
  8935.  
  8936. VW_INLINE HRESULT CVisioDocument::getDefaultTextStyle(BSTR_HELPER_CLASS FAR &rWrap)
  8937. {
  8938.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8939.     BSTR lpObj= NULL;
  8940.  
  8941.     CHECK_IP(GetIP(), CVisioDocument, getDefaultTextStyle);
  8942.     if (NULL!=GetIP())
  8943.         hr= GetIP()->get_DefaultTextStyle(&lpObj);
  8944.     CHECK_HRESULT(hr, CVisioDocument, getDefaultTextStyle);
  8945.  
  8946.     rWrap= lpObj;
  8947. #ifndef NO_BSTR_HELPER
  8948.     if (NULL!=lpObj)
  8949.         SysFreeString(lpObj);
  8950. #endif  //  NO_BSTR_HELPER
  8951.  
  8952.     return hr;
  8953. }
  8954.  
  8955.  
  8956. VW_INLINE HRESULT CVisioDocument::putDefaultTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8957. {
  8958.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8959.     CHECK_IP(GetIP(), CVisioDocument, putDefaultTextStyle);
  8960.     if (NULL!=GetIP())
  8961.         hr= GetIP()->put_DefaultTextStyle(param01);
  8962.     CHECK_HRESULT(hr, CVisioDocument, putDefaultTextStyle);
  8963.     return hr;
  8964. }
  8965.  
  8966.  
  8967. VW_INLINE HRESULT CVisioDocument::PersistsEvents(short FAR *lpRet)
  8968. {
  8969.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8970.     CHECK_IP(GetIP(), CVisioDocument, PersistsEvents);
  8971.     if (NULL!=GetIP())
  8972.         hr= GetIP()->get_PersistsEvents(lpRet);
  8973.     CHECK_HRESULT(hr, CVisioDocument, PersistsEvents);
  8974.     return hr;
  8975. }
  8976.  
  8977.  
  8978. VW_INLINE HRESULT CVisioDocument::OpenStencilWindow(CVisioWindow FAR &rWrap)
  8979. {
  8980.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8981.     IVWindow FAR *lpObj= NULL;
  8982.  
  8983.     CHECK_IP(GetIP(), CVisioDocument, OpenStencilWindow);
  8984.     if (NULL!=GetIP())
  8985.         hr= GetIP()->OpenStencilWindow(&lpObj);
  8986.     CHECK_HRESULT(hr, CVisioDocument, OpenStencilWindow);
  8987.  
  8988.     rWrap= lpObj;
  8989.     if (NULL!=lpObj)
  8990.         lpObj->Release();
  8991.  
  8992.     return hr;
  8993. }
  8994.  
  8995.  
  8996. VW_INLINE HRESULT CVisioDocument::ParseLine(BSTR_HELPER_CLASS FAR &Line)
  8997. {
  8998.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8999.     CHECK_IP(GetIP(), CVisioDocument, ParseLine);
  9000.     if (NULL!=GetIP())
  9001.         hr= GetIP()->ParseLine(Line);
  9002.     CHECK_HRESULT(hr, CVisioDocument, ParseLine);
  9003.     return hr;
  9004. }
  9005.  
  9006.  
  9007. VW_INLINE HRESULT CVisioDocument::ExecuteLine(BSTR_HELPER_CLASS FAR &Line)
  9008. {
  9009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9010.     CHECK_IP(GetIP(), CVisioDocument, ExecuteLine);
  9011.     if (NULL!=GetIP())
  9012.         hr= GetIP()->ExecuteLine(Line);
  9013.     CHECK_HRESULT(hr, CVisioDocument, ExecuteLine);
  9014.     return hr;
  9015. }
  9016.  
  9017.  
  9018. VW_INLINE HRESULT CVisioDocument::VBProject(IDispatch FAR *FAR *lpRet)
  9019. {
  9020.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9021.     CHECK_IP(GetIP(), CVisioDocument, VBProject);
  9022.     if (NULL!=GetIP())
  9023.         hr= GetIP()->get_VBProject(lpRet);
  9024.     CHECK_HRESULT(hr, CVisioDocument, VBProject);
  9025.     return hr;
  9026. }
  9027.  
  9028.  
  9029. VW_INLINE HRESULT CVisioDocument::PaperWidth(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  9030. {
  9031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9032.     CHECK_IP(GetIP(), CVisioDocument, PaperWidth);
  9033.     if (NULL!=GetIP())
  9034.         hr= GetIP()->get_PaperWidth(UnitsNameOrCode, lpRet);
  9035.     CHECK_HRESULT(hr, CVisioDocument, PaperWidth);
  9036.     return hr;
  9037. }
  9038.  
  9039.  
  9040. VW_INLINE HRESULT CVisioDocument::PaperHeight(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, double FAR *lpRet)
  9041. {
  9042.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9043.     CHECK_IP(GetIP(), CVisioDocument, PaperHeight);
  9044.     if (NULL!=GetIP())
  9045.         hr= GetIP()->get_PaperHeight(UnitsNameOrCode, lpRet);
  9046.     CHECK_HRESULT(hr, CVisioDocument, PaperHeight);
  9047.     return hr;
  9048. }
  9049.  
  9050.  
  9051. VW_INLINE HRESULT CVisioDocument::getPaperSize(short FAR *lpRet)
  9052. {
  9053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9054.     CHECK_IP(GetIP(), CVisioDocument, getPaperSize);
  9055.     if (NULL!=GetIP())
  9056.         hr= GetIP()->get_PaperSize(lpRet);
  9057.     CHECK_HRESULT(hr, CVisioDocument, getPaperSize);
  9058.     return hr;
  9059. }
  9060.  
  9061.  
  9062. VW_INLINE HRESULT CVisioDocument::putPaperSize(VW_CONST short param01)
  9063. {
  9064.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9065.     CHECK_IP(GetIP(), CVisioDocument, putPaperSize);
  9066.     if (NULL!=GetIP())
  9067.         hr= GetIP()->put_PaperSize(param01);
  9068.     CHECK_HRESULT(hr, CVisioDocument, putPaperSize);
  9069.     return hr;
  9070. }
  9071.  
  9072.  
  9073. VW_INLINE HRESULT CVisioDocument::FollowHyperlink45(BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &Location)
  9074. {
  9075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9076.     CHECK_IP(GetIP(), CVisioDocument, FollowHyperlink45);
  9077.     if (NULL!=GetIP())
  9078.         hr= GetIP()->FollowHyperlink45(Target, Location);
  9079.     CHECK_HRESULT(hr, CVisioDocument, FollowHyperlink45);
  9080.     return hr;
  9081. }
  9082.  
  9083.  
  9084. VW_INLINE HRESULT CVisioDocument::CodeName(BSTR_HELPER_CLASS FAR &rWrap)
  9085. {
  9086.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9087.     BSTR lpObj= NULL;
  9088.  
  9089.     CHECK_IP(GetIP(), CVisioDocument, CodeName);
  9090.     if (NULL!=GetIP())
  9091.         hr= GetIP()->get_CodeName(&lpObj);
  9092.     CHECK_HRESULT(hr, CVisioDocument, CodeName);
  9093.  
  9094.     rWrap= lpObj;
  9095. #ifndef NO_BSTR_HELPER
  9096.     if (NULL!=lpObj)
  9097.         SysFreeString(lpObj);
  9098. #endif  //  NO_BSTR_HELPER
  9099.  
  9100.     return hr;
  9101. }
  9102.  
  9103.  
  9104. VW_INLINE HRESULT CVisioDocument::getMode(short FAR *lpRet)
  9105. {
  9106.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9107.     CHECK_IP(GetIP(), CVisioDocument, getMode);
  9108.     if (NULL!=GetIP())
  9109.         hr= GetIP()->get_Mode(lpRet);
  9110.     CHECK_HRESULT(hr, CVisioDocument, getMode);
  9111.     return hr;
  9112. }
  9113.  
  9114.  
  9115. VW_INLINE HRESULT CVisioDocument::putMode(VW_CONST short param01)
  9116. {
  9117.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9118.     CHECK_IP(GetIP(), CVisioDocument, putMode);
  9119.     if (NULL!=GetIP())
  9120.         hr= GetIP()->put_Mode(param01);
  9121.     CHECK_HRESULT(hr, CVisioDocument, putMode);
  9122.     return hr;
  9123. }
  9124.  
  9125.  
  9126. VW_INLINE HRESULT CVisioDocument::OLEObjects(CVisioOLEObjects FAR &rWrap)
  9127. {
  9128.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9129.     IVOLEObjects FAR *lpObj= NULL;
  9130.  
  9131.     CHECK_IP(GetIP(), CVisioDocument, OLEObjects);
  9132.     if (NULL!=GetIP())
  9133.         hr= GetIP()->get_OLEObjects(&lpObj);
  9134.     CHECK_HRESULT(hr, CVisioDocument, OLEObjects);
  9135.  
  9136.     rWrap= lpObj;
  9137.     if (NULL!=lpObj)
  9138.         lpObj->Release();
  9139.  
  9140.     return hr;
  9141. }
  9142.  
  9143.  
  9144. VW_INLINE HRESULT CVisioDocument::FollowHyperlink(BSTR_HELPER_CLASS FAR &Address, BSTR_HELPER_CLASS FAR &SubAddress, VARIANT_HELPER_CLASS FAR &ExtraInfo, VARIANT_HELPER_CLASS FAR &Frame, VARIANT_HELPER_CLASS FAR &NewWindow, VARIANT_HELPER_CLASS FAR &res1, VARIANT_HELPER_CLASS FAR &res2, VARIANT_HELPER_CLASS FAR &res3)
  9145. {
  9146.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9147.     CHECK_IP(GetIP(), CVisioDocument, FollowHyperlink);
  9148.     if (NULL!=GetIP())
  9149.         hr= GetIP()->FollowHyperlink(Address, SubAddress, ExtraInfo, Frame, NewWindow, res1, res2, res3);
  9150.     CHECK_HRESULT(hr, CVisioDocument, FollowHyperlink);
  9151.     return hr;
  9152. }
  9153.  
  9154.  
  9155. VW_INLINE HRESULT CVisioDocument::getManager(BSTR_HELPER_CLASS FAR &rWrap)
  9156. {
  9157.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9158.     BSTR lpObj= NULL;
  9159.  
  9160.     CHECK_IP(GetIP(), CVisioDocument, getManager);
  9161.     if (NULL!=GetIP())
  9162.         hr= GetIP()->get_Manager(&lpObj);
  9163.     CHECK_HRESULT(hr, CVisioDocument, getManager);
  9164.  
  9165.     rWrap= lpObj;
  9166. #ifndef NO_BSTR_HELPER
  9167.     if (NULL!=lpObj)
  9168.         SysFreeString(lpObj);
  9169. #endif  //  NO_BSTR_HELPER
  9170.  
  9171.     return hr;
  9172. }
  9173.  
  9174.  
  9175. VW_INLINE HRESULT CVisioDocument::putManager(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9176. {
  9177.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9178.     CHECK_IP(GetIP(), CVisioDocument, putManager);
  9179.     if (NULL!=GetIP())
  9180.         hr= GetIP()->put_Manager(param01);
  9181.     CHECK_HRESULT(hr, CVisioDocument, putManager);
  9182.     return hr;
  9183. }
  9184.  
  9185.  
  9186. VW_INLINE HRESULT CVisioDocument::getCompany(BSTR_HELPER_CLASS FAR &rWrap)
  9187. {
  9188.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9189.     BSTR lpObj= NULL;
  9190.  
  9191.     CHECK_IP(GetIP(), CVisioDocument, getCompany);
  9192.     if (NULL!=GetIP())
  9193.         hr= GetIP()->get_Company(&lpObj);
  9194.     CHECK_HRESULT(hr, CVisioDocument, getCompany);
  9195.  
  9196.     rWrap= lpObj;
  9197. #ifndef NO_BSTR_HELPER
  9198.     if (NULL!=lpObj)
  9199.         SysFreeString(lpObj);
  9200. #endif  //  NO_BSTR_HELPER
  9201.  
  9202.     return hr;
  9203. }
  9204.  
  9205.  
  9206. VW_INLINE HRESULT CVisioDocument::putCompany(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9207. {
  9208.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9209.     CHECK_IP(GetIP(), CVisioDocument, putCompany);
  9210.     if (NULL!=GetIP())
  9211.         hr= GetIP()->put_Company(param01);
  9212.     CHECK_HRESULT(hr, CVisioDocument, putCompany);
  9213.     return hr;
  9214. }
  9215.  
  9216.  
  9217. VW_INLINE HRESULT CVisioDocument::getCategory(BSTR_HELPER_CLASS FAR &rWrap)
  9218. {
  9219.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9220.     BSTR lpObj= NULL;
  9221.  
  9222.     CHECK_IP(GetIP(), CVisioDocument, getCategory);
  9223.     if (NULL!=GetIP())
  9224.         hr= GetIP()->get_Category(&lpObj);
  9225.     CHECK_HRESULT(hr, CVisioDocument, getCategory);
  9226.  
  9227.     rWrap= lpObj;
  9228. #ifndef NO_BSTR_HELPER
  9229.     if (NULL!=lpObj)
  9230.         SysFreeString(lpObj);
  9231. #endif  //  NO_BSTR_HELPER
  9232.  
  9233.     return hr;
  9234. }
  9235.  
  9236.  
  9237. VW_INLINE HRESULT CVisioDocument::putCategory(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9238. {
  9239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9240.     CHECK_IP(GetIP(), CVisioDocument, putCategory);
  9241.     if (NULL!=GetIP())
  9242.         hr= GetIP()->put_Category(param01);
  9243.     CHECK_HRESULT(hr, CVisioDocument, putCategory);
  9244.     return hr;
  9245. }
  9246.  
  9247.  
  9248. VW_INLINE HRESULT CVisioDocument::getHyperlinkBase(BSTR_HELPER_CLASS FAR &rWrap)
  9249. {
  9250.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9251.     BSTR lpObj= NULL;
  9252.  
  9253.     CHECK_IP(GetIP(), CVisioDocument, getHyperlinkBase);
  9254.     if (NULL!=GetIP())
  9255.         hr= GetIP()->get_HyperlinkBase(&lpObj);
  9256.     CHECK_HRESULT(hr, CVisioDocument, getHyperlinkBase);
  9257.  
  9258.     rWrap= lpObj;
  9259. #ifndef NO_BSTR_HELPER
  9260.     if (NULL!=lpObj)
  9261.         SysFreeString(lpObj);
  9262. #endif  //  NO_BSTR_HELPER
  9263.  
  9264.     return hr;
  9265. }
  9266.  
  9267.  
  9268. VW_INLINE HRESULT CVisioDocument::putHyperlinkBase(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9269. {
  9270.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9271.     CHECK_IP(GetIP(), CVisioDocument, putHyperlinkBase);
  9272.     if (NULL!=GetIP())
  9273.         hr= GetIP()->put_HyperlinkBase(param01);
  9274.     CHECK_HRESULT(hr, CVisioDocument, putHyperlinkBase);
  9275.     return hr;
  9276. }
  9277.  
  9278.  
  9279.  
  9280. //  ***************************************************************************
  9281. //  Implementation of class CVisioDocuments
  9282.  
  9283. VW_INLINE HRESULT CVisioDocuments::Add(BSTR_HELPER_CLASS FAR &FileName, CVisioDocument FAR &rWrap)
  9284. {
  9285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9286.     IVDocument FAR *lpObj= NULL;
  9287.  
  9288.     CHECK_IP(GetIP(), CVisioDocuments, Add);
  9289.     if (NULL!=GetIP())
  9290.         hr= GetIP()->Add(FileName, &lpObj);
  9291.     CHECK_HRESULT(hr, CVisioDocuments, Add);
  9292.  
  9293.     rWrap= lpObj;
  9294.     if (NULL!=lpObj)
  9295.         lpObj->Release();
  9296.  
  9297.     return hr;
  9298. }
  9299.  
  9300.  
  9301. VW_INLINE HRESULT CVisioDocuments::Open(BSTR_HELPER_CLASS FAR &FileName, CVisioDocument FAR &rWrap)
  9302. {
  9303.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9304.     IVDocument FAR *lpObj= NULL;
  9305.  
  9306.     CHECK_IP(GetIP(), CVisioDocuments, Open);
  9307.     if (NULL!=GetIP())
  9308.         hr= GetIP()->Open(FileName, &lpObj);
  9309.     CHECK_HRESULT(hr, CVisioDocuments, Open);
  9310.  
  9311.     rWrap= lpObj;
  9312.     if (NULL!=lpObj)
  9313.         lpObj->Release();
  9314.  
  9315.     return hr;
  9316. }
  9317.  
  9318.  
  9319. VW_INLINE HRESULT CVisioDocuments::Application(CVisioApplication FAR &rWrap)
  9320. {
  9321.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9322.     IVApplication FAR *lpObj= NULL;
  9323.  
  9324.     CHECK_IP(GetIP(), CVisioDocuments, Application);
  9325.     if (NULL!=GetIP())
  9326.         hr= GetIP()->get_Application(&lpObj);
  9327.     CHECK_HRESULT(hr, CVisioDocuments, Application);
  9328.  
  9329.     rWrap= lpObj;
  9330.     if (NULL!=lpObj)
  9331.         lpObj->Release();
  9332.  
  9333.     return hr;
  9334. }
  9335.  
  9336.  
  9337. VW_INLINE HRESULT CVisioDocuments::ObjectType(short FAR *lpRet)
  9338. {
  9339.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9340.     CHECK_IP(GetIP(), CVisioDocuments, ObjectType);
  9341.     if (NULL!=GetIP())
  9342.         hr= GetIP()->get_ObjectType(lpRet);
  9343.     CHECK_HRESULT(hr, CVisioDocuments, ObjectType);
  9344.     return hr;
  9345. }
  9346.  
  9347.  
  9348. VW_INLINE HRESULT CVisioDocuments::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioDocument FAR &rWrap)
  9349. {
  9350.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9351.     IVDocument FAR *lpObj= NULL;
  9352.  
  9353.     CHECK_IP(GetIP(), CVisioDocuments, Item);
  9354.     if (NULL!=GetIP())
  9355.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  9356.     CHECK_HRESULT(hr, CVisioDocuments, Item);
  9357.  
  9358.     rWrap= lpObj;
  9359.     if (NULL!=lpObj)
  9360.         lpObj->Release();
  9361.  
  9362.     return hr;
  9363. }
  9364.  
  9365.  
  9366. VW_INLINE HRESULT CVisioDocuments::Count(short FAR *lpRet)
  9367. {
  9368.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9369.     CHECK_IP(GetIP(), CVisioDocuments, Count);
  9370.     if (NULL!=GetIP())
  9371.         hr= GetIP()->get_Count(lpRet);
  9372.     CHECK_HRESULT(hr, CVisioDocuments, Count);
  9373.     return hr;
  9374. }
  9375.  
  9376.  
  9377. VW_INLINE HRESULT CVisioDocuments::OpenEx(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioDocument FAR &rWrap)
  9378. {
  9379.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9380.     IVDocument FAR *lpObj= NULL;
  9381.  
  9382.     CHECK_IP(GetIP(), CVisioDocuments, OpenEx);
  9383.     if (NULL!=GetIP())
  9384.         hr= GetIP()->OpenEx(FileName, Flags, &lpObj);
  9385.     CHECK_HRESULT(hr, CVisioDocuments, OpenEx);
  9386.  
  9387.     rWrap= lpObj;
  9388.     if (NULL!=lpObj)
  9389.         lpObj->Release();
  9390.  
  9391.     return hr;
  9392. }
  9393.  
  9394.  
  9395. VW_INLINE HRESULT CVisioDocuments::EventList(CVisioEventList FAR &rWrap)
  9396. {
  9397.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9398.     IVEventList FAR *lpObj= NULL;
  9399.  
  9400.     CHECK_IP(GetIP(), CVisioDocuments, EventList);
  9401.     if (NULL!=GetIP())
  9402.         hr= GetIP()->get_EventList(&lpObj);
  9403.     CHECK_HRESULT(hr, CVisioDocuments, EventList);
  9404.  
  9405.     rWrap= lpObj;
  9406.     if (NULL!=lpObj)
  9407.         lpObj->Release();
  9408.  
  9409.     return hr;
  9410. }
  9411.  
  9412.  
  9413. VW_INLINE HRESULT CVisioDocuments::PersistsEvents(short FAR *lpRet)
  9414. {
  9415.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9416.     CHECK_IP(GetIP(), CVisioDocuments, PersistsEvents);
  9417.     if (NULL!=GetIP())
  9418.         hr= GetIP()->get_PersistsEvents(lpRet);
  9419.     CHECK_HRESULT(hr, CVisioDocuments, PersistsEvents);
  9420.     return hr;
  9421. }
  9422.  
  9423.  
  9424. VW_INLINE HRESULT CVisioDocuments::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  9425. {
  9426.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9427.     CHECK_IP(GetIP(), CVisioDocuments, GetNames);
  9428.     if (NULL!=GetIP())
  9429.         hr= GetIP()->GetNames(NameArray);
  9430.     CHECK_HRESULT(hr, CVisioDocuments, GetNames);
  9431.     return hr;
  9432. }
  9433.  
  9434.  
  9435.  
  9436. //  ***************************************************************************
  9437. //  Implementation of class CVisioMaster
  9438.  
  9439. VW_INLINE HRESULT CVisioMaster::Document(CVisioDocument FAR &rWrap)
  9440. {
  9441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9442.     IVDocument FAR *lpObj= NULL;
  9443.  
  9444.     CHECK_IP(GetIP(), CVisioMaster, Document);
  9445.     if (NULL!=GetIP())
  9446.         hr= GetIP()->get_Document(&lpObj);
  9447.     CHECK_HRESULT(hr, CVisioMaster, Document);
  9448.  
  9449.     rWrap= lpObj;
  9450.     if (NULL!=lpObj)
  9451.         lpObj->Release();
  9452.  
  9453.     return hr;
  9454. }
  9455.  
  9456.  
  9457. VW_INLINE HRESULT CVisioMaster::getPrompt(BSTR_HELPER_CLASS FAR &rWrap)
  9458. {
  9459.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9460.     BSTR lpObj= NULL;
  9461.  
  9462.     CHECK_IP(GetIP(), CVisioMaster, getPrompt);
  9463.     if (NULL!=GetIP())
  9464.         hr= GetIP()->get_Prompt(&lpObj);
  9465.     CHECK_HRESULT(hr, CVisioMaster, getPrompt);
  9466.  
  9467.     rWrap= lpObj;
  9468. #ifndef NO_BSTR_HELPER
  9469.     if (NULL!=lpObj)
  9470.         SysFreeString(lpObj);
  9471. #endif  //  NO_BSTR_HELPER
  9472.  
  9473.     return hr;
  9474. }
  9475.  
  9476.  
  9477. VW_INLINE HRESULT CVisioMaster::putPrompt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9478. {
  9479.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9480.     CHECK_IP(GetIP(), CVisioMaster, putPrompt);
  9481.     if (NULL!=GetIP())
  9482.         hr= GetIP()->put_Prompt(param01);
  9483.     CHECK_HRESULT(hr, CVisioMaster, putPrompt);
  9484.     return hr;
  9485. }
  9486.  
  9487.  
  9488. VW_INLINE HRESULT CVisioMaster::getAlignName(short FAR *lpRet)
  9489. {
  9490.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9491.     CHECK_IP(GetIP(), CVisioMaster, getAlignName);
  9492.     if (NULL!=GetIP())
  9493.         hr= GetIP()->get_AlignName(lpRet);
  9494.     CHECK_HRESULT(hr, CVisioMaster, getAlignName);
  9495.     return hr;
  9496. }
  9497.  
  9498.  
  9499. VW_INLINE HRESULT CVisioMaster::putAlignName(VW_CONST short param01)
  9500. {
  9501.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9502.     CHECK_IP(GetIP(), CVisioMaster, putAlignName);
  9503.     if (NULL!=GetIP())
  9504.         hr= GetIP()->put_AlignName(param01);
  9505.     CHECK_HRESULT(hr, CVisioMaster, putAlignName);
  9506.     return hr;
  9507. }
  9508.  
  9509.  
  9510. VW_INLINE HRESULT CVisioMaster::getIconSize(short FAR *lpRet)
  9511. {
  9512.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9513.     CHECK_IP(GetIP(), CVisioMaster, getIconSize);
  9514.     if (NULL!=GetIP())
  9515.         hr= GetIP()->get_IconSize(lpRet);
  9516.     CHECK_HRESULT(hr, CVisioMaster, getIconSize);
  9517.     return hr;
  9518. }
  9519.  
  9520.  
  9521. VW_INLINE HRESULT CVisioMaster::putIconSize(VW_CONST short param01)
  9522. {
  9523.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9524.     CHECK_IP(GetIP(), CVisioMaster, putIconSize);
  9525.     if (NULL!=GetIP())
  9526.         hr= GetIP()->put_IconSize(param01);
  9527.     CHECK_HRESULT(hr, CVisioMaster, putIconSize);
  9528.     return hr;
  9529. }
  9530.  
  9531.  
  9532. VW_INLINE HRESULT CVisioMaster::getIconUpdate(short FAR *lpRet)
  9533. {
  9534.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9535.     CHECK_IP(GetIP(), CVisioMaster, getIconUpdate);
  9536.     if (NULL!=GetIP())
  9537.         hr= GetIP()->get_IconUpdate(lpRet);
  9538.     CHECK_HRESULT(hr, CVisioMaster, getIconUpdate);
  9539.     return hr;
  9540. }
  9541.  
  9542.  
  9543. VW_INLINE HRESULT CVisioMaster::putIconUpdate(VW_CONST short param01)
  9544. {
  9545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9546.     CHECK_IP(GetIP(), CVisioMaster, putIconUpdate);
  9547.     if (NULL!=GetIP())
  9548.         hr= GetIP()->put_IconUpdate(param01);
  9549.     CHECK_HRESULT(hr, CVisioMaster, putIconUpdate);
  9550.     return hr;
  9551. }
  9552.  
  9553.  
  9554. VW_INLINE HRESULT CVisioMaster::Application(CVisioApplication FAR &rWrap)
  9555. {
  9556.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9557.     IVApplication FAR *lpObj= NULL;
  9558.  
  9559.     CHECK_IP(GetIP(), CVisioMaster, Application);
  9560.     if (NULL!=GetIP())
  9561.         hr= GetIP()->get_Application(&lpObj);
  9562.     CHECK_HRESULT(hr, CVisioMaster, Application);
  9563.  
  9564.     rWrap= lpObj;
  9565.     if (NULL!=lpObj)
  9566.         lpObj->Release();
  9567.  
  9568.     return hr;
  9569. }
  9570.  
  9571.  
  9572. VW_INLINE HRESULT CVisioMaster::Stat(short FAR *lpRet)
  9573. {
  9574.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9575.     CHECK_IP(GetIP(), CVisioMaster, Stat);
  9576.     if (NULL!=GetIP())
  9577.         hr= GetIP()->get_Stat(lpRet);
  9578.     CHECK_HRESULT(hr, CVisioMaster, Stat);
  9579.     return hr;
  9580. }
  9581.  
  9582.  
  9583. VW_INLINE HRESULT CVisioMaster::ObjectType(short FAR *lpRet)
  9584. {
  9585.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9586.     CHECK_IP(GetIP(), CVisioMaster, ObjectType);
  9587.     if (NULL!=GetIP())
  9588.         hr= GetIP()->get_ObjectType(lpRet);
  9589.     CHECK_HRESULT(hr, CVisioMaster, ObjectType);
  9590.     return hr;
  9591. }
  9592.  
  9593.  
  9594. VW_INLINE HRESULT CVisioMaster::getName(BSTR_HELPER_CLASS FAR &rWrap)
  9595. {
  9596.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9597.     BSTR lpObj= NULL;
  9598.  
  9599.     CHECK_IP(GetIP(), CVisioMaster, getName);
  9600.     if (NULL!=GetIP())
  9601.         hr= GetIP()->get_Name(&lpObj);
  9602.     CHECK_HRESULT(hr, CVisioMaster, getName);
  9603.  
  9604.     rWrap= lpObj;
  9605. #ifndef NO_BSTR_HELPER
  9606.     if (NULL!=lpObj)
  9607.         SysFreeString(lpObj);
  9608. #endif  //  NO_BSTR_HELPER
  9609.  
  9610.     return hr;
  9611. }
  9612.  
  9613.  
  9614. VW_INLINE HRESULT CVisioMaster::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9615. {
  9616.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9617.     CHECK_IP(GetIP(), CVisioMaster, putName);
  9618.     if (NULL!=GetIP())
  9619.         hr= GetIP()->put_Name(param01);
  9620.     CHECK_HRESULT(hr, CVisioMaster, putName);
  9621.     return hr;
  9622. }
  9623.  
  9624.  
  9625. VW_INLINE HRESULT CVisioMaster::Shapes(CVisioShapes FAR &rWrap)
  9626. {
  9627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9628.     IVShapes FAR *lpObj= NULL;
  9629.  
  9630.     CHECK_IP(GetIP(), CVisioMaster, Shapes);
  9631.     if (NULL!=GetIP())
  9632.         hr= GetIP()->get_Shapes(&lpObj);
  9633.     CHECK_HRESULT(hr, CVisioMaster, Shapes);
  9634.  
  9635.     rWrap= lpObj;
  9636.     if (NULL!=lpObj)
  9637.         lpObj->Release();
  9638.  
  9639.     return hr;
  9640. }
  9641.  
  9642.  
  9643. VW_INLINE HRESULT CVisioMaster::Index(short FAR *lpRet)
  9644. {
  9645.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9646.     CHECK_IP(GetIP(), CVisioMaster, Index);
  9647.     if (NULL!=GetIP())
  9648.         hr= GetIP()->get_Index(lpRet);
  9649.     CHECK_HRESULT(hr, CVisioMaster, Index);
  9650.     return hr;
  9651. }
  9652.  
  9653.  
  9654. VW_INLINE HRESULT CVisioMaster::OneD(short FAR *lpRet)
  9655. {
  9656.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9657.     CHECK_IP(GetIP(), CVisioMaster, OneD);
  9658.     if (NULL!=GetIP())
  9659.         hr= GetIP()->get_OneD(lpRet);
  9660.     CHECK_HRESULT(hr, CVisioMaster, OneD);
  9661.     return hr;
  9662. }
  9663.  
  9664.  
  9665. VW_INLINE HRESULT CVisioMaster::Delete()
  9666. {
  9667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9668.     CHECK_IP(GetIP(), CVisioMaster, Delete);
  9669.     if (NULL!=GetIP())
  9670.         hr= GetIP()->Delete();
  9671.     CHECK_HRESULT(hr, CVisioMaster, Delete);
  9672.     return hr;
  9673. }
  9674.  
  9675.  
  9676. VW_INLINE HRESULT CVisioMaster::UniqueID(BSTR_HELPER_CLASS FAR &rWrap)
  9677. {
  9678.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9679.     BSTR lpObj= NULL;
  9680.  
  9681.     CHECK_IP(GetIP(), CVisioMaster, UniqueID);
  9682.     if (NULL!=GetIP())
  9683.         hr= GetIP()->get_UniqueID(&lpObj);
  9684.     CHECK_HRESULT(hr, CVisioMaster, UniqueID);
  9685.  
  9686.     rWrap= lpObj;
  9687. #ifndef NO_BSTR_HELPER
  9688.     if (NULL!=lpObj)
  9689.         SysFreeString(lpObj);
  9690. #endif  //  NO_BSTR_HELPER
  9691.  
  9692.     return hr;
  9693. }
  9694.  
  9695.  
  9696. VW_INLINE HRESULT CVisioMaster::Layers(CVisioLayers FAR &rWrap)
  9697. {
  9698.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9699.     IVLayers FAR *lpObj= NULL;
  9700.  
  9701.     CHECK_IP(GetIP(), CVisioMaster, Layers);
  9702.     if (NULL!=GetIP())
  9703.         hr= GetIP()->get_Layers(&lpObj);
  9704.     CHECK_HRESULT(hr, CVisioMaster, Layers);
  9705.  
  9706.     rWrap= lpObj;
  9707.     if (NULL!=lpObj)
  9708.         lpObj->Release();
  9709.  
  9710.     return hr;
  9711. }
  9712.  
  9713.  
  9714. VW_INLINE HRESULT CVisioMaster::PageSheet(CVisioShape FAR &rWrap)
  9715. {
  9716.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9717.     IVShape FAR *lpObj= NULL;
  9718.  
  9719.     CHECK_IP(GetIP(), CVisioMaster, PageSheet);
  9720.     if (NULL!=GetIP())
  9721.         hr= GetIP()->get_PageSheet(&lpObj);
  9722.     CHECK_HRESULT(hr, CVisioMaster, PageSheet);
  9723.  
  9724.     rWrap= lpObj;
  9725.     if (NULL!=lpObj)
  9726.         lpObj->Release();
  9727.  
  9728.     return hr;
  9729. }
  9730.  
  9731.  
  9732. VW_INLINE HRESULT CVisioMaster::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap)
  9733. {
  9734.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9735.     IVShape FAR *lpObj= NULL;
  9736.  
  9737.     CHECK_IP(GetIP(), CVisioMaster, Drop);
  9738.     if (NULL!=GetIP())
  9739.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpObj);
  9740.     CHECK_HRESULT(hr, CVisioMaster, Drop);
  9741.  
  9742.     rWrap= lpObj;
  9743.     if (NULL!=lpObj)
  9744.         lpObj->Release();
  9745.  
  9746.     return hr;
  9747. }
  9748.  
  9749.  
  9750. VW_INLINE HRESULT CVisioMaster::CenterDrawing()
  9751. {
  9752.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9753.     CHECK_IP(GetIP(), CVisioMaster, CenterDrawing);
  9754.     if (NULL!=GetIP())
  9755.         hr= GetIP()->CenterDrawing();
  9756.     CHECK_HRESULT(hr, CVisioMaster, CenterDrawing);
  9757.     return hr;
  9758. }
  9759.  
  9760.  
  9761. VW_INLINE HRESULT CVisioMaster::EventList(CVisioEventList FAR &rWrap)
  9762. {
  9763.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9764.     IVEventList FAR *lpObj= NULL;
  9765.  
  9766.     CHECK_IP(GetIP(), CVisioMaster, EventList);
  9767.     if (NULL!=GetIP())
  9768.         hr= GetIP()->get_EventList(&lpObj);
  9769.     CHECK_HRESULT(hr, CVisioMaster, EventList);
  9770.  
  9771.     rWrap= lpObj;
  9772.     if (NULL!=lpObj)
  9773.         lpObj->Release();
  9774.  
  9775.     return hr;
  9776. }
  9777.  
  9778.  
  9779. VW_INLINE HRESULT CVisioMaster::PersistsEvents(short FAR *lpRet)
  9780. {
  9781.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9782.     CHECK_IP(GetIP(), CVisioMaster, PersistsEvents);
  9783.     if (NULL!=GetIP())
  9784.         hr= GetIP()->get_PersistsEvents(lpRet);
  9785.     CHECK_HRESULT(hr, CVisioMaster, PersistsEvents);
  9786.     return hr;
  9787. }
  9788.  
  9789.  
  9790. VW_INLINE HRESULT CVisioMaster::DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  9791. {
  9792.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9793.     IVShape FAR *lpObj= NULL;
  9794.  
  9795.     CHECK_IP(GetIP(), CVisioMaster, DrawLine);
  9796.     if (NULL!=GetIP())
  9797.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpObj);
  9798.     CHECK_HRESULT(hr, CVisioMaster, DrawLine);
  9799.  
  9800.     rWrap= lpObj;
  9801.     if (NULL!=lpObj)
  9802.         lpObj->Release();
  9803.  
  9804.     return hr;
  9805. }
  9806.  
  9807.  
  9808. VW_INLINE HRESULT CVisioMaster::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  9809. {
  9810.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9811.     IVShape FAR *lpObj= NULL;
  9812.  
  9813.     CHECK_IP(GetIP(), CVisioMaster, DrawRectangle);
  9814.     if (NULL!=GetIP())
  9815.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpObj);
  9816.     CHECK_HRESULT(hr, CVisioMaster, DrawRectangle);
  9817.  
  9818.     rWrap= lpObj;
  9819.     if (NULL!=lpObj)
  9820.         lpObj->Release();
  9821.  
  9822.     return hr;
  9823. }
  9824.  
  9825.  
  9826. VW_INLINE HRESULT CVisioMaster::DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  9827. {
  9828.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9829.     IVShape FAR *lpObj= NULL;
  9830.  
  9831.     CHECK_IP(GetIP(), CVisioMaster, DrawOval);
  9832.     if (NULL!=GetIP())
  9833.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpObj);
  9834.     CHECK_HRESULT(hr, CVisioMaster, DrawOval);
  9835.  
  9836.     rWrap= lpObj;
  9837.     if (NULL!=lpObj)
  9838.         lpObj->Release();
  9839.  
  9840.     return hr;
  9841. }
  9842.  
  9843.  
  9844. VW_INLINE HRESULT CVisioMaster::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap)
  9845. {
  9846.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9847.     IVShape FAR *lpObj= NULL;
  9848.  
  9849.     CHECK_IP(GetIP(), CVisioMaster, DrawSpline);
  9850.     if (NULL!=GetIP())
  9851.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpObj);
  9852.     CHECK_HRESULT(hr, CVisioMaster, DrawSpline);
  9853.  
  9854.     rWrap= lpObj;
  9855.     if (NULL!=lpObj)
  9856.         lpObj->Release();
  9857.  
  9858.     return hr;
  9859. }
  9860.  
  9861.  
  9862. VW_INLINE HRESULT CVisioMaster::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap)
  9863. {
  9864.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9865.     IVShape FAR *lpObj= NULL;
  9866.  
  9867.     CHECK_IP(GetIP(), CVisioMaster, DrawBezier);
  9868.     if (NULL!=GetIP())
  9869.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpObj);
  9870.     CHECK_HRESULT(hr, CVisioMaster, DrawBezier);
  9871.  
  9872.     rWrap= lpObj;
  9873.     if (NULL!=lpObj)
  9874.         lpObj->Release();
  9875.  
  9876.     return hr;
  9877. }
  9878.  
  9879.  
  9880. VW_INLINE HRESULT CVisioMaster::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap)
  9881. {
  9882.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9883.     IVShape FAR *lpObj= NULL;
  9884.  
  9885.     CHECK_IP(GetIP(), CVisioMaster, DrawPolyline);
  9886.     if (NULL!=GetIP())
  9887.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpObj);
  9888.     CHECK_HRESULT(hr, CVisioMaster, DrawPolyline);
  9889.  
  9890.     rWrap= lpObj;
  9891.     if (NULL!=lpObj)
  9892.         lpObj->Release();
  9893.  
  9894.     return hr;
  9895. }
  9896.  
  9897.  
  9898. VW_INLINE HRESULT CVisioMaster::Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap)
  9899. {
  9900.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9901.     IVShape FAR *lpObj= NULL;
  9902.  
  9903.     CHECK_IP(GetIP(), CVisioMaster, Import);
  9904.     if (NULL!=GetIP())
  9905.         hr= GetIP()->Import(FileName, &lpObj);
  9906.     CHECK_HRESULT(hr, CVisioMaster, Import);
  9907.  
  9908.     rWrap= lpObj;
  9909.     if (NULL!=lpObj)
  9910.         lpObj->Release();
  9911.  
  9912.     return hr;
  9913. }
  9914.  
  9915.  
  9916. VW_INLINE HRESULT CVisioMaster::Export(BSTR_HELPER_CLASS FAR &FileName)
  9917. {
  9918.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9919.     CHECK_IP(GetIP(), CVisioMaster, Export);
  9920.     if (NULL!=GetIP())
  9921.         hr= GetIP()->Export(FileName);
  9922.     CHECK_HRESULT(hr, CVisioMaster, Export);
  9923.     return hr;
  9924. }
  9925.  
  9926.  
  9927. VW_INLINE HRESULT CVisioMaster::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap)
  9928. {
  9929.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9930.     IVShape FAR *lpObj= NULL;
  9931.  
  9932.     CHECK_IP(GetIP(), CVisioMaster, InsertFromFile);
  9933.     if (NULL!=GetIP())
  9934.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpObj);
  9935.     CHECK_HRESULT(hr, CVisioMaster, InsertFromFile);
  9936.  
  9937.     rWrap= lpObj;
  9938.     if (NULL!=lpObj)
  9939.         lpObj->Release();
  9940.  
  9941.     return hr;
  9942. }
  9943.  
  9944.  
  9945. VW_INLINE HRESULT CVisioMaster::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap)
  9946. {
  9947.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9948.     IVShape FAR *lpObj= NULL;
  9949.  
  9950.     CHECK_IP(GetIP(), CVisioMaster, InsertObject);
  9951.     if (NULL!=GetIP())
  9952.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpObj);
  9953.     CHECK_HRESULT(hr, CVisioMaster, InsertObject);
  9954.  
  9955.     rWrap= lpObj;
  9956.     if (NULL!=lpObj)
  9957.         lpObj->Release();
  9958.  
  9959.     return hr;
  9960. }
  9961.  
  9962.  
  9963. VW_INLINE HRESULT CVisioMaster::OpenDrawWindow(CVisioWindow FAR &rWrap)
  9964. {
  9965.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9966.     IVWindow FAR *lpObj= NULL;
  9967.  
  9968.     CHECK_IP(GetIP(), CVisioMaster, OpenDrawWindow);
  9969.     if (NULL!=GetIP())
  9970.         hr= GetIP()->OpenDrawWindow(&lpObj);
  9971.     CHECK_HRESULT(hr, CVisioMaster, OpenDrawWindow);
  9972.  
  9973.     rWrap= lpObj;
  9974.     if (NULL!=lpObj)
  9975.         lpObj->Release();
  9976.  
  9977.     return hr;
  9978. }
  9979.  
  9980.  
  9981. VW_INLINE HRESULT CVisioMaster::OpenIconWindow(CVisioWindow FAR &rWrap)
  9982. {
  9983.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9984.     IVWindow FAR *lpObj= NULL;
  9985.  
  9986.     CHECK_IP(GetIP(), CVisioMaster, OpenIconWindow);
  9987.     if (NULL!=GetIP())
  9988.         hr= GetIP()->OpenIconWindow(&lpObj);
  9989.     CHECK_HRESULT(hr, CVisioMaster, OpenIconWindow);
  9990.  
  9991.     rWrap= lpObj;
  9992.     if (NULL!=lpObj)
  9993.         lpObj->Release();
  9994.  
  9995.     return hr;
  9996. }
  9997.  
  9998.  
  9999. VW_INLINE HRESULT CVisioMaster::Open(CVisioMaster FAR &rWrap)
  10000. {
  10001.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10002.     IVMaster FAR *lpObj= NULL;
  10003.  
  10004.     CHECK_IP(GetIP(), CVisioMaster, Open);
  10005.     if (NULL!=GetIP())
  10006.         hr= GetIP()->Open(&lpObj);
  10007.     CHECK_HRESULT(hr, CVisioMaster, Open);
  10008.  
  10009.     rWrap= lpObj;
  10010.     if (NULL!=lpObj)
  10011.         lpObj->Release();
  10012.  
  10013.     return hr;
  10014. }
  10015.  
  10016.  
  10017. VW_INLINE HRESULT CVisioMaster::Close()
  10018. {
  10019.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10020.     CHECK_IP(GetIP(), CVisioMaster, Close);
  10021.     if (NULL!=GetIP())
  10022.         hr= GetIP()->Close();
  10023.     CHECK_HRESULT(hr, CVisioMaster, Close);
  10024.     return hr;
  10025. }
  10026.  
  10027.  
  10028. VW_INLINE HRESULT CVisioMaster::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet)
  10029. {
  10030.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10031.     CHECK_IP(GetIP(), CVisioMaster, DropMany);
  10032.     if (NULL!=GetIP())
  10033.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, lpRet);
  10034.     CHECK_HRESULT(hr, CVisioMaster, DropMany);
  10035.     return hr;
  10036. }
  10037.  
  10038.  
  10039. VW_INLINE HRESULT CVisioMaster::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  10040. {
  10041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10042.     CHECK_IP(GetIP(), CVisioMaster, GetFormulas);
  10043.     if (NULL!=GetIP())
  10044.         hr= GetIP()->GetFormulas(SID_SRCStream, formulaArray);
  10045.     CHECK_HRESULT(hr, CVisioMaster, GetFormulas);
  10046.     return hr;
  10047. }
  10048.  
  10049.  
  10050. VW_INLINE HRESULT CVisioMaster::GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  10051. {
  10052.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10053.     CHECK_IP(GetIP(), CVisioMaster, GetResults);
  10054.     if (NULL!=GetIP())
  10055.         hr= GetIP()->GetResults(SID_SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  10056.     CHECK_HRESULT(hr, CVisioMaster, GetResults);
  10057.     return hr;
  10058. }
  10059.  
  10060.  
  10061. VW_INLINE HRESULT CVisioMaster::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
  10062. {
  10063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10064.     CHECK_IP(GetIP(), CVisioMaster, SetFormulas);
  10065.     if (NULL!=GetIP())
  10066.         hr= GetIP()->SetFormulas(SID_SRCStream, formulaArray, Flags, lpRet);
  10067.     CHECK_HRESULT(hr, CVisioMaster, SetFormulas);
  10068.     return hr;
  10069. }
  10070.  
  10071.  
  10072. VW_INLINE HRESULT CVisioMaster::SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
  10073. {
  10074.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10075.     CHECK_IP(GetIP(), CVisioMaster, SetResults);
  10076.     if (NULL!=GetIP())
  10077.         hr= GetIP()->SetResults(SID_SRCStream, UnitsNamesOrCodes, resultArray, Flags, lpRet);
  10078.     CHECK_HRESULT(hr, CVisioMaster, SetResults);
  10079.     return hr;
  10080. }
  10081.  
  10082.  
  10083. VW_INLINE HRESULT CVisioMaster::Connects(CVisioConnects FAR &rWrap)
  10084. {
  10085.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10086.     IVConnects FAR *lpObj= NULL;
  10087.  
  10088.     CHECK_IP(GetIP(), CVisioMaster, Connects);
  10089.     if (NULL!=GetIP())
  10090.         hr= GetIP()->get_Connects(&lpObj);
  10091.     CHECK_HRESULT(hr, CVisioMaster, Connects);
  10092.  
  10093.     rWrap= lpObj;
  10094.     if (NULL!=lpObj)
  10095.         lpObj->Release();
  10096.  
  10097.     return hr;
  10098. }
  10099.  
  10100.  
  10101. VW_INLINE HRESULT CVisioMaster::ImportIcon(BSTR_HELPER_CLASS FAR &FileName)
  10102. {
  10103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10104.     CHECK_IP(GetIP(), CVisioMaster, ImportIcon);
  10105.     if (NULL!=GetIP())
  10106.         hr= GetIP()->ImportIcon(FileName);
  10107.     CHECK_HRESULT(hr, CVisioMaster, ImportIcon);
  10108.     return hr;
  10109. }
  10110.  
  10111.  
  10112. VW_INLINE HRESULT CVisioMaster::ExportIcon(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  10113. {
  10114.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10115.     CHECK_IP(GetIP(), CVisioMaster, ExportIcon);
  10116.     if (NULL!=GetIP())
  10117.         hr= GetIP()->ExportIcon(FileName, Flags);
  10118.     CHECK_HRESULT(hr, CVisioMaster, ExportIcon);
  10119.     return hr;
  10120. }
  10121.  
  10122.  
  10123. VW_INLINE HRESULT CVisioMaster::Layout()
  10124. {
  10125.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10126.     CHECK_IP(GetIP(), CVisioMaster, Layout);
  10127.     if (NULL!=GetIP())
  10128.         hr= GetIP()->Layout();
  10129.     CHECK_HRESULT(hr, CVisioMaster, Layout);
  10130.     return hr;
  10131. }
  10132.  
  10133.  
  10134. VW_INLINE HRESULT CVisioMaster::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  10135. {
  10136.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10137.     CHECK_IP(GetIP(), CVisioMaster, BoundingBox);
  10138.     if (NULL!=GetIP())
  10139.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  10140.     CHECK_HRESULT(hr, CVisioMaster, BoundingBox);
  10141.     return hr;
  10142. }
  10143.  
  10144.  
  10145. VW_INLINE HRESULT CVisioMaster::ID(short FAR *lpRet)
  10146. {
  10147.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10148.     CHECK_IP(GetIP(), CVisioMaster, ID);
  10149.     if (NULL!=GetIP())
  10150.         hr= GetIP()->get_ID(lpRet);
  10151.     CHECK_HRESULT(hr, CVisioMaster, ID);
  10152.     return hr;
  10153. }
  10154.  
  10155.  
  10156. VW_INLINE HRESULT CVisioMaster::OLEObjects(CVisioOLEObjects FAR &rWrap)
  10157. {
  10158.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10159.     IVOLEObjects FAR *lpObj= NULL;
  10160.  
  10161.     CHECK_IP(GetIP(), CVisioMaster, OLEObjects);
  10162.     if (NULL!=GetIP())
  10163.         hr= GetIP()->get_OLEObjects(&lpObj);
  10164.     CHECK_HRESULT(hr, CVisioMaster, OLEObjects);
  10165.  
  10166.     rWrap= lpObj;
  10167.     if (NULL!=lpObj)
  10168.         lpObj->Release();
  10169.  
  10170.     return hr;
  10171. }
  10172.  
  10173.  
  10174. VW_INLINE HRESULT CVisioMaster::getPatternFlags(short FAR *lpRet)
  10175. {
  10176.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10177.     CHECK_IP(GetIP(), CVisioMaster, getPatternFlags);
  10178.     if (NULL!=GetIP())
  10179.         hr= GetIP()->get_PatternFlags(lpRet);
  10180.     CHECK_HRESULT(hr, CVisioMaster, getPatternFlags);
  10181.     return hr;
  10182. }
  10183.  
  10184.  
  10185. VW_INLINE HRESULT CVisioMaster::putPatternFlags(VW_CONST short param01)
  10186. {
  10187.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10188.     CHECK_IP(GetIP(), CVisioMaster, putPatternFlags);
  10189.     if (NULL!=GetIP())
  10190.         hr= GetIP()->put_PatternFlags(param01);
  10191.     CHECK_HRESULT(hr, CVisioMaster, putPatternFlags);
  10192.     return hr;
  10193. }
  10194.  
  10195.  
  10196. VW_INLINE HRESULT CVisioMaster::getMatchByName(short FAR *lpRet)
  10197. {
  10198.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10199.     CHECK_IP(GetIP(), CVisioMaster, getMatchByName);
  10200.     if (NULL!=GetIP())
  10201.         hr= GetIP()->get_MatchByName(lpRet);
  10202.     CHECK_HRESULT(hr, CVisioMaster, getMatchByName);
  10203.     return hr;
  10204. }
  10205.  
  10206.  
  10207. VW_INLINE HRESULT CVisioMaster::putMatchByName(VW_CONST short param01)
  10208. {
  10209.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10210.     CHECK_IP(GetIP(), CVisioMaster, putMatchByName);
  10211.     if (NULL!=GetIP())
  10212.         hr= GetIP()->put_MatchByName(param01);
  10213.     CHECK_HRESULT(hr, CVisioMaster, putMatchByName);
  10214.     return hr;
  10215. }
  10216.  
  10217.  
  10218.  
  10219. //  ***************************************************************************
  10220. //  Implementation of class CVisioMasters
  10221.  
  10222. VW_INLINE HRESULT CVisioMasters::Application(CVisioApplication FAR &rWrap)
  10223. {
  10224.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10225.     IVApplication FAR *lpObj= NULL;
  10226.  
  10227.     CHECK_IP(GetIP(), CVisioMasters, Application);
  10228.     if (NULL!=GetIP())
  10229.         hr= GetIP()->get_Application(&lpObj);
  10230.     CHECK_HRESULT(hr, CVisioMasters, Application);
  10231.  
  10232.     rWrap= lpObj;
  10233.     if (NULL!=lpObj)
  10234.         lpObj->Release();
  10235.  
  10236.     return hr;
  10237. }
  10238.  
  10239.  
  10240. VW_INLINE HRESULT CVisioMasters::ObjectType(short FAR *lpRet)
  10241. {
  10242.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10243.     CHECK_IP(GetIP(), CVisioMasters, ObjectType);
  10244.     if (NULL!=GetIP())
  10245.         hr= GetIP()->get_ObjectType(lpRet);
  10246.     CHECK_HRESULT(hr, CVisioMasters, ObjectType);
  10247.     return hr;
  10248. }
  10249.  
  10250.  
  10251. VW_INLINE HRESULT CVisioMasters::Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex, CVisioMaster FAR &rWrap)
  10252. {
  10253.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10254.     IVMaster FAR *lpObj= NULL;
  10255.  
  10256.     CHECK_IP(GetIP(), CVisioMasters, Item);
  10257.     if (NULL!=GetIP())
  10258.         hr= GetIP()->get_Item(NameUIDOrIndex, &lpObj);
  10259.     CHECK_HRESULT(hr, CVisioMasters, Item);
  10260.  
  10261.     rWrap= lpObj;
  10262.     if (NULL!=lpObj)
  10263.         lpObj->Release();
  10264.  
  10265.     return hr;
  10266. }
  10267.  
  10268.  
  10269. VW_INLINE HRESULT CVisioMasters::Count(short FAR *lpRet)
  10270. {
  10271.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10272.     CHECK_IP(GetIP(), CVisioMasters, Count);
  10273.     if (NULL!=GetIP())
  10274.         hr= GetIP()->get_Count(lpRet);
  10275.     CHECK_HRESULT(hr, CVisioMasters, Count);
  10276.     return hr;
  10277. }
  10278.  
  10279.  
  10280. VW_INLINE HRESULT CVisioMasters::Document(CVisioDocument FAR &rWrap)
  10281. {
  10282.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10283.     IVDocument FAR *lpObj= NULL;
  10284.  
  10285.     CHECK_IP(GetIP(), CVisioMasters, Document);
  10286.     if (NULL!=GetIP())
  10287.         hr= GetIP()->get_Document(&lpObj);
  10288.     CHECK_HRESULT(hr, CVisioMasters, Document);
  10289.  
  10290.     rWrap= lpObj;
  10291.     if (NULL!=lpObj)
  10292.         lpObj->Release();
  10293.  
  10294.     return hr;
  10295. }
  10296.  
  10297.  
  10298. VW_INLINE HRESULT CVisioMasters::Stat(short FAR *lpRet)
  10299. {
  10300.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10301.     CHECK_IP(GetIP(), CVisioMasters, Stat);
  10302.     if (NULL!=GetIP())
  10303.         hr= GetIP()->get_Stat(lpRet);
  10304.     CHECK_HRESULT(hr, CVisioMasters, Stat);
  10305.     return hr;
  10306. }
  10307.  
  10308.  
  10309. VW_INLINE HRESULT CVisioMasters::EventList(CVisioEventList FAR &rWrap)
  10310. {
  10311.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10312.     IVEventList FAR *lpObj= NULL;
  10313.  
  10314.     CHECK_IP(GetIP(), CVisioMasters, EventList);
  10315.     if (NULL!=GetIP())
  10316.         hr= GetIP()->get_EventList(&lpObj);
  10317.     CHECK_HRESULT(hr, CVisioMasters, EventList);
  10318.  
  10319.     rWrap= lpObj;
  10320.     if (NULL!=lpObj)
  10321.         lpObj->Release();
  10322.  
  10323.     return hr;
  10324. }
  10325.  
  10326.  
  10327. VW_INLINE HRESULT CVisioMasters::PersistsEvents(short FAR *lpRet)
  10328. {
  10329.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10330.     CHECK_IP(GetIP(), CVisioMasters, PersistsEvents);
  10331.     if (NULL!=GetIP())
  10332.         hr= GetIP()->get_PersistsEvents(lpRet);
  10333.     CHECK_HRESULT(hr, CVisioMasters, PersistsEvents);
  10334.     return hr;
  10335. }
  10336.  
  10337.  
  10338. VW_INLINE HRESULT CVisioMasters::Add(CVisioMaster FAR &rWrap)
  10339. {
  10340.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10341.     IVMaster FAR *lpObj= NULL;
  10342.  
  10343.     CHECK_IP(GetIP(), CVisioMasters, Add);
  10344.     if (NULL!=GetIP())
  10345.         hr= GetIP()->Add(&lpObj);
  10346.     CHECK_HRESULT(hr, CVisioMasters, Add);
  10347.  
  10348.     rWrap= lpObj;
  10349.     if (NULL!=lpObj)
  10350.         lpObj->Release();
  10351.  
  10352.     return hr;
  10353. }
  10354.  
  10355.  
  10356. VW_INLINE HRESULT CVisioMasters::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  10357. {
  10358.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10359.     CHECK_IP(GetIP(), CVisioMasters, GetNames);
  10360.     if (NULL!=GetIP())
  10361.         hr= GetIP()->GetNames(NameArray);
  10362.     CHECK_HRESULT(hr, CVisioMasters, GetNames);
  10363.     return hr;
  10364. }
  10365.  
  10366.  
  10367.  
  10368. //  ***************************************************************************
  10369. //  Implementation of class CVisioPage
  10370.  
  10371. VW_INLINE HRESULT CVisioPage::Document(CVisioDocument FAR &rWrap)
  10372. {
  10373.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10374.     IVDocument FAR *lpObj= NULL;
  10375.  
  10376.     CHECK_IP(GetIP(), CVisioPage, Document);
  10377.     if (NULL!=GetIP())
  10378.         hr= GetIP()->get_Document(&lpObj);
  10379.     CHECK_HRESULT(hr, CVisioPage, Document);
  10380.  
  10381.     rWrap= lpObj;
  10382.     if (NULL!=lpObj)
  10383.         lpObj->Release();
  10384.  
  10385.     return hr;
  10386. }
  10387.  
  10388.  
  10389. VW_INLINE HRESULT CVisioPage::Application(CVisioApplication FAR &rWrap)
  10390. {
  10391.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10392.     IVApplication FAR *lpObj= NULL;
  10393.  
  10394.     CHECK_IP(GetIP(), CVisioPage, Application);
  10395.     if (NULL!=GetIP())
  10396.         hr= GetIP()->get_Application(&lpObj);
  10397.     CHECK_HRESULT(hr, CVisioPage, Application);
  10398.  
  10399.     rWrap= lpObj;
  10400.     if (NULL!=lpObj)
  10401.         lpObj->Release();
  10402.  
  10403.     return hr;
  10404. }
  10405.  
  10406.  
  10407. VW_INLINE HRESULT CVisioPage::Stat(short FAR *lpRet)
  10408. {
  10409.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10410.     CHECK_IP(GetIP(), CVisioPage, Stat);
  10411.     if (NULL!=GetIP())
  10412.         hr= GetIP()->get_Stat(lpRet);
  10413.     CHECK_HRESULT(hr, CVisioPage, Stat);
  10414.     return hr;
  10415. }
  10416.  
  10417.  
  10418. VW_INLINE HRESULT CVisioPage::getBackground(short FAR *lpRet)
  10419. {
  10420.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10421.     CHECK_IP(GetIP(), CVisioPage, getBackground);
  10422.     if (NULL!=GetIP())
  10423.         hr= GetIP()->get_Background(lpRet);
  10424.     CHECK_HRESULT(hr, CVisioPage, getBackground);
  10425.     return hr;
  10426. }
  10427.  
  10428.  
  10429. VW_INLINE HRESULT CVisioPage::putBackground(VW_CONST short param01)
  10430. {
  10431.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10432.     CHECK_IP(GetIP(), CVisioPage, putBackground);
  10433.     if (NULL!=GetIP())
  10434.         hr= GetIP()->put_Background(param01);
  10435.     CHECK_HRESULT(hr, CVisioPage, putBackground);
  10436.     return hr;
  10437. }
  10438.  
  10439.  
  10440. VW_INLINE HRESULT CVisioPage::Paste()
  10441. {
  10442.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10443.     CHECK_IP(GetIP(), CVisioPage, Paste);
  10444.     if (NULL!=GetIP())
  10445.         hr= GetIP()->Paste();
  10446.     CHECK_HRESULT(hr, CVisioPage, Paste);
  10447.     return hr;
  10448. }
  10449.  
  10450.  
  10451. VW_INLINE HRESULT CVisioPage::PasteSpecial(short Format)
  10452. {
  10453.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10454.     CHECK_IP(GetIP(), CVisioPage, PasteSpecial);
  10455.     if (NULL!=GetIP())
  10456.         hr= GetIP()->PasteSpecial(Format);
  10457.     CHECK_HRESULT(hr, CVisioPage, PasteSpecial);
  10458.     return hr;
  10459. }
  10460.  
  10461.  
  10462. VW_INLINE HRESULT CVisioPage::ObjectType(short FAR *lpRet)
  10463. {
  10464.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10465.     CHECK_IP(GetIP(), CVisioPage, ObjectType);
  10466.     if (NULL!=GetIP())
  10467.         hr= GetIP()->get_ObjectType(lpRet);
  10468.     CHECK_HRESULT(hr, CVisioPage, ObjectType);
  10469.     return hr;
  10470. }
  10471.  
  10472.  
  10473. VW_INLINE HRESULT CVisioPage::DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  10474. {
  10475.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10476.     IVShape FAR *lpObj= NULL;
  10477.  
  10478.     CHECK_IP(GetIP(), CVisioPage, DrawLine);
  10479.     if (NULL!=GetIP())
  10480.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpObj);
  10481.     CHECK_HRESULT(hr, CVisioPage, DrawLine);
  10482.  
  10483.     rWrap= lpObj;
  10484.     if (NULL!=lpObj)
  10485.         lpObj->Release();
  10486.  
  10487.     return hr;
  10488. }
  10489.  
  10490.  
  10491. VW_INLINE HRESULT CVisioPage::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  10492. {
  10493.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10494.     IVShape FAR *lpObj= NULL;
  10495.  
  10496.     CHECK_IP(GetIP(), CVisioPage, DrawRectangle);
  10497.     if (NULL!=GetIP())
  10498.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpObj);
  10499.     CHECK_HRESULT(hr, CVisioPage, DrawRectangle);
  10500.  
  10501.     rWrap= lpObj;
  10502.     if (NULL!=lpObj)
  10503.         lpObj->Release();
  10504.  
  10505.     return hr;
  10506. }
  10507.  
  10508.  
  10509. VW_INLINE HRESULT CVisioPage::DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  10510. {
  10511.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10512.     IVShape FAR *lpObj= NULL;
  10513.  
  10514.     CHECK_IP(GetIP(), CVisioPage, DrawOval);
  10515.     if (NULL!=GetIP())
  10516.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpObj);
  10517.     CHECK_HRESULT(hr, CVisioPage, DrawOval);
  10518.  
  10519.     rWrap= lpObj;
  10520.     if (NULL!=lpObj)
  10521.         lpObj->Release();
  10522.  
  10523.     return hr;
  10524. }
  10525.  
  10526.  
  10527. VW_INLINE HRESULT CVisioPage::Index(short FAR *lpRet)
  10528. {
  10529.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10530.     CHECK_IP(GetIP(), CVisioPage, Index);
  10531.     if (NULL!=GetIP())
  10532.         hr= GetIP()->get_Index(lpRet);
  10533.     CHECK_HRESULT(hr, CVisioPage, Index);
  10534.     return hr;
  10535. }
  10536.  
  10537.  
  10538. VW_INLINE HRESULT CVisioPage::getName(BSTR_HELPER_CLASS FAR &rWrap)
  10539. {
  10540.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10541.     BSTR lpObj= NULL;
  10542.  
  10543.     CHECK_IP(GetIP(), CVisioPage, getName);
  10544.     if (NULL!=GetIP())
  10545.         hr= GetIP()->get_Name(&lpObj);
  10546.     CHECK_HRESULT(hr, CVisioPage, getName);
  10547.  
  10548.     rWrap= lpObj;
  10549. #ifndef NO_BSTR_HELPER
  10550.     if (NULL!=lpObj)
  10551.         SysFreeString(lpObj);
  10552. #endif  //  NO_BSTR_HELPER
  10553.  
  10554.     return hr;
  10555. }
  10556.  
  10557.  
  10558. VW_INLINE HRESULT CVisioPage::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10559. {
  10560.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10561.     CHECK_IP(GetIP(), CVisioPage, putName);
  10562.     if (NULL!=GetIP())
  10563.         hr= GetIP()->put_Name(param01);
  10564.     CHECK_HRESULT(hr, CVisioPage, putName);
  10565.     return hr;
  10566. }
  10567.  
  10568.  
  10569. VW_INLINE HRESULT CVisioPage::Shapes(CVisioShapes FAR &rWrap)
  10570. {
  10571.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10572.     IVShapes FAR *lpObj= NULL;
  10573.  
  10574.     CHECK_IP(GetIP(), CVisioPage, Shapes);
  10575.     if (NULL!=GetIP())
  10576.         hr= GetIP()->get_Shapes(&lpObj);
  10577.     CHECK_HRESULT(hr, CVisioPage, Shapes);
  10578.  
  10579.     rWrap= lpObj;
  10580.     if (NULL!=lpObj)
  10581.         lpObj->Release();
  10582.  
  10583.     return hr;
  10584. }
  10585.  
  10586.  
  10587. VW_INLINE HRESULT CVisioPage::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap)
  10588. {
  10589.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10590.     IVShape FAR *lpObj= NULL;
  10591.  
  10592.     CHECK_IP(GetIP(), CVisioPage, Drop);
  10593.     if (NULL!=GetIP())
  10594.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpObj);
  10595.     CHECK_HRESULT(hr, CVisioPage, Drop);
  10596.  
  10597.     rWrap= lpObj;
  10598.     if (NULL!=lpObj)
  10599.         lpObj->Release();
  10600.  
  10601.     return hr;
  10602. }
  10603.  
  10604.  
  10605. VW_INLINE HRESULT CVisioPage::AddGuide(short Type, double xPos, double yPos, CVisioShape FAR &rWrap)
  10606. {
  10607.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10608.     IVShape FAR *lpObj= NULL;
  10609.  
  10610.     CHECK_IP(GetIP(), CVisioPage, AddGuide);
  10611.     if (NULL!=GetIP())
  10612.         hr= GetIP()->AddGuide(Type, xPos, yPos, &lpObj);
  10613.     CHECK_HRESULT(hr, CVisioPage, AddGuide);
  10614.  
  10615.     rWrap= lpObj;
  10616.     if (NULL!=lpObj)
  10617.         lpObj->Release();
  10618.  
  10619.     return hr;
  10620. }
  10621.  
  10622.  
  10623. VW_INLINE HRESULT CVisioPage::BackPageAsObj(CVisioPage FAR &rWrap)
  10624. {
  10625.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10626.     IVPage FAR *lpObj= NULL;
  10627.  
  10628.     CHECK_IP(GetIP(), CVisioPage, BackPageAsObj);
  10629.     if (NULL!=GetIP())
  10630.         hr= GetIP()->get_BackPageAsObj(&lpObj);
  10631.     CHECK_HRESULT(hr, CVisioPage, BackPageAsObj);
  10632.  
  10633.     rWrap= lpObj;
  10634.     if (NULL!=lpObj)
  10635.         lpObj->Release();
  10636.  
  10637.     return hr;
  10638. }
  10639.  
  10640.  
  10641. VW_INLINE HRESULT CVisioPage::BackPageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10642. {
  10643.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10644.     CHECK_IP(GetIP(), CVisioPage, BackPageFromName);
  10645.     if (NULL!=GetIP())
  10646.         hr= GetIP()->put_BackPageFromName(param01);
  10647.     CHECK_HRESULT(hr, CVisioPage, BackPageFromName);
  10648.     return hr;
  10649. }
  10650.  
  10651.  
  10652. VW_INLINE HRESULT CVisioPage::Print()
  10653. {
  10654.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10655.     CHECK_IP(GetIP(), CVisioPage, Print);
  10656.     if (NULL!=GetIP())
  10657.         hr= GetIP()->Print();
  10658.     CHECK_HRESULT(hr, CVisioPage, Print);
  10659.     return hr;
  10660. }
  10661.  
  10662.  
  10663. VW_INLINE HRESULT CVisioPage::Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap)
  10664. {
  10665.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10666.     IVShape FAR *lpObj= NULL;
  10667.  
  10668.     CHECK_IP(GetIP(), CVisioPage, Import);
  10669.     if (NULL!=GetIP())
  10670.         hr= GetIP()->Import(FileName, &lpObj);
  10671.     CHECK_HRESULT(hr, CVisioPage, Import);
  10672.  
  10673.     rWrap= lpObj;
  10674.     if (NULL!=lpObj)
  10675.         lpObj->Release();
  10676.  
  10677.     return hr;
  10678. }
  10679.  
  10680.  
  10681. VW_INLINE HRESULT CVisioPage::Export(BSTR_HELPER_CLASS FAR &FileName)
  10682. {
  10683.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10684.     CHECK_IP(GetIP(), CVisioPage, Export);
  10685.     if (NULL!=GetIP())
  10686.         hr= GetIP()->Export(FileName);
  10687.     CHECK_HRESULT(hr, CVisioPage, Export);
  10688.     return hr;
  10689. }
  10690.  
  10691.  
  10692. VW_INLINE HRESULT CVisioPage::Layers(CVisioLayers FAR &rWrap)
  10693. {
  10694.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10695.     IVLayers FAR *lpObj= NULL;
  10696.  
  10697.     CHECK_IP(GetIP(), CVisioPage, Layers);
  10698.     if (NULL!=GetIP())
  10699.         hr= GetIP()->get_Layers(&lpObj);
  10700.     CHECK_HRESULT(hr, CVisioPage, Layers);
  10701.  
  10702.     rWrap= lpObj;
  10703.     if (NULL!=lpObj)
  10704.         lpObj->Release();
  10705.  
  10706.     return hr;
  10707. }
  10708.  
  10709.  
  10710. VW_INLINE HRESULT CVisioPage::PageSheet(CVisioShape FAR &rWrap)
  10711. {
  10712.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10713.     IVShape FAR *lpObj= NULL;
  10714.  
  10715.     CHECK_IP(GetIP(), CVisioPage, PageSheet);
  10716.     if (NULL!=GetIP())
  10717.         hr= GetIP()->get_PageSheet(&lpObj);
  10718.     CHECK_HRESULT(hr, CVisioPage, PageSheet);
  10719.  
  10720.     rWrap= lpObj;
  10721.     if (NULL!=lpObj)
  10722.         lpObj->Release();
  10723.  
  10724.     return hr;
  10725. }
  10726.  
  10727.  
  10728. VW_INLINE HRESULT CVisioPage::Delete(short fRenumberPages)
  10729. {
  10730.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10731.     CHECK_IP(GetIP(), CVisioPage, Delete);
  10732.     if (NULL!=GetIP())
  10733.         hr= GetIP()->Delete(fRenumberPages);
  10734.     CHECK_HRESULT(hr, CVisioPage, Delete);
  10735.     return hr;
  10736. }
  10737.  
  10738.  
  10739. VW_INLINE HRESULT CVisioPage::CenterDrawing()
  10740. {
  10741.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10742.     CHECK_IP(GetIP(), CVisioPage, CenterDrawing);
  10743.     if (NULL!=GetIP())
  10744.         hr= GetIP()->CenterDrawing();
  10745.     CHECK_HRESULT(hr, CVisioPage, CenterDrawing);
  10746.     return hr;
  10747. }
  10748.  
  10749.  
  10750. VW_INLINE HRESULT CVisioPage::EventList(CVisioEventList FAR &rWrap)
  10751. {
  10752.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10753.     IVEventList FAR *lpObj= NULL;
  10754.  
  10755.     CHECK_IP(GetIP(), CVisioPage, EventList);
  10756.     if (NULL!=GetIP())
  10757.         hr= GetIP()->get_EventList(&lpObj);
  10758.     CHECK_HRESULT(hr, CVisioPage, EventList);
  10759.  
  10760.     rWrap= lpObj;
  10761.     if (NULL!=lpObj)
  10762.         lpObj->Release();
  10763.  
  10764.     return hr;
  10765. }
  10766.  
  10767.  
  10768. VW_INLINE HRESULT CVisioPage::PersistsEvents(short FAR *lpRet)
  10769. {
  10770.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10771.     CHECK_IP(GetIP(), CVisioPage, PersistsEvents);
  10772.     if (NULL!=GetIP())
  10773.         hr= GetIP()->get_PersistsEvents(lpRet);
  10774.     CHECK_HRESULT(hr, CVisioPage, PersistsEvents);
  10775.     return hr;
  10776. }
  10777.  
  10778.  
  10779. VW_INLINE HRESULT CVisioPage::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap)
  10780. {
  10781.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10782.     IVShape FAR *lpObj= NULL;
  10783.  
  10784.     CHECK_IP(GetIP(), CVisioPage, DrawSpline);
  10785.     if (NULL!=GetIP())
  10786.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpObj);
  10787.     CHECK_HRESULT(hr, CVisioPage, DrawSpline);
  10788.  
  10789.     rWrap= lpObj;
  10790.     if (NULL!=lpObj)
  10791.         lpObj->Release();
  10792.  
  10793.     return hr;
  10794. }
  10795.  
  10796.  
  10797. VW_INLINE HRESULT CVisioPage::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap)
  10798. {
  10799.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10800.     IVShape FAR *lpObj= NULL;
  10801.  
  10802.     CHECK_IP(GetIP(), CVisioPage, DrawBezier);
  10803.     if (NULL!=GetIP())
  10804.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpObj);
  10805.     CHECK_HRESULT(hr, CVisioPage, DrawBezier);
  10806.  
  10807.     rWrap= lpObj;
  10808.     if (NULL!=lpObj)
  10809.         lpObj->Release();
  10810.  
  10811.     return hr;
  10812. }
  10813.  
  10814.  
  10815. VW_INLINE HRESULT CVisioPage::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap)
  10816. {
  10817.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10818.     IVShape FAR *lpObj= NULL;
  10819.  
  10820.     CHECK_IP(GetIP(), CVisioPage, DrawPolyline);
  10821.     if (NULL!=GetIP())
  10822.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpObj);
  10823.     CHECK_HRESULT(hr, CVisioPage, DrawPolyline);
  10824.  
  10825.     rWrap= lpObj;
  10826.     if (NULL!=lpObj)
  10827.         lpObj->Release();
  10828.  
  10829.     return hr;
  10830. }
  10831.  
  10832.  
  10833. VW_INLINE HRESULT CVisioPage::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap)
  10834. {
  10835.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10836.     IVShape FAR *lpObj= NULL;
  10837.  
  10838.     CHECK_IP(GetIP(), CVisioPage, InsertFromFile);
  10839.     if (NULL!=GetIP())
  10840.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpObj);
  10841.     CHECK_HRESULT(hr, CVisioPage, InsertFromFile);
  10842.  
  10843.     rWrap= lpObj;
  10844.     if (NULL!=lpObj)
  10845.         lpObj->Release();
  10846.  
  10847.     return hr;
  10848. }
  10849.  
  10850.  
  10851. VW_INLINE HRESULT CVisioPage::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap)
  10852. {
  10853.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10854.     IVShape FAR *lpObj= NULL;
  10855.  
  10856.     CHECK_IP(GetIP(), CVisioPage, InsertObject);
  10857.     if (NULL!=GetIP())
  10858.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpObj);
  10859.     CHECK_HRESULT(hr, CVisioPage, InsertObject);
  10860.  
  10861.     rWrap= lpObj;
  10862.     if (NULL!=lpObj)
  10863.         lpObj->Release();
  10864.  
  10865.     return hr;
  10866. }
  10867.  
  10868.  
  10869. VW_INLINE HRESULT CVisioPage::OpenDrawWindow(CVisioWindow FAR &rWrap)
  10870. {
  10871.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10872.     IVWindow FAR *lpObj= NULL;
  10873.  
  10874.     CHECK_IP(GetIP(), CVisioPage, OpenDrawWindow);
  10875.     if (NULL!=GetIP())
  10876.         hr= GetIP()->OpenDrawWindow(&lpObj);
  10877.     CHECK_HRESULT(hr, CVisioPage, OpenDrawWindow);
  10878.  
  10879.     rWrap= lpObj;
  10880.     if (NULL!=lpObj)
  10881.         lpObj->Release();
  10882.  
  10883.     return hr;
  10884. }
  10885.  
  10886.  
  10887. VW_INLINE HRESULT CVisioPage::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet)
  10888. {
  10889.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10890.     CHECK_IP(GetIP(), CVisioPage, DropMany);
  10891.     if (NULL!=GetIP())
  10892.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, lpRet);
  10893.     CHECK_HRESULT(hr, CVisioPage, DropMany);
  10894.     return hr;
  10895. }
  10896.  
  10897.  
  10898. VW_INLINE HRESULT CVisioPage::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  10899. {
  10900.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10901.     CHECK_IP(GetIP(), CVisioPage, GetFormulas);
  10902.     if (NULL!=GetIP())
  10903.         hr= GetIP()->GetFormulas(SID_SRCStream, formulaArray);
  10904.     CHECK_HRESULT(hr, CVisioPage, GetFormulas);
  10905.     return hr;
  10906. }
  10907.  
  10908.  
  10909. VW_INLINE HRESULT CVisioPage::GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  10910. {
  10911.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10912.     CHECK_IP(GetIP(), CVisioPage, GetResults);
  10913.     if (NULL!=GetIP())
  10914.         hr= GetIP()->GetResults(SID_SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  10915.     CHECK_HRESULT(hr, CVisioPage, GetResults);
  10916.     return hr;
  10917. }
  10918.  
  10919.  
  10920. VW_INLINE HRESULT CVisioPage::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
  10921. {
  10922.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10923.     CHECK_IP(GetIP(), CVisioPage, SetFormulas);
  10924.     if (NULL!=GetIP())
  10925.         hr= GetIP()->SetFormulas(SID_SRCStream, formulaArray, Flags, lpRet);
  10926.     CHECK_HRESULT(hr, CVisioPage, SetFormulas);
  10927.     return hr;
  10928. }
  10929.  
  10930.  
  10931. VW_INLINE HRESULT CVisioPage::SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
  10932. {
  10933.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10934.     CHECK_IP(GetIP(), CVisioPage, SetResults);
  10935.     if (NULL!=GetIP())
  10936.         hr= GetIP()->SetResults(SID_SRCStream, UnitsNamesOrCodes, resultArray, Flags, lpRet);
  10937.     CHECK_HRESULT(hr, CVisioPage, SetResults);
  10938.     return hr;
  10939. }
  10940.  
  10941.  
  10942. VW_INLINE HRESULT CVisioPage::Connects(CVisioConnects FAR &rWrap)
  10943. {
  10944.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10945.     IVConnects FAR *lpObj= NULL;
  10946.  
  10947.     CHECK_IP(GetIP(), CVisioPage, Connects);
  10948.     if (NULL!=GetIP())
  10949.         hr= GetIP()->get_Connects(&lpObj);
  10950.     CHECK_HRESULT(hr, CVisioPage, Connects);
  10951.  
  10952.     rWrap= lpObj;
  10953.     if (NULL!=lpObj)
  10954.         lpObj->Release();
  10955.  
  10956.     return hr;
  10957. }
  10958.  
  10959.  
  10960. VW_INLINE HRESULT CVisioPage::getBackPage(VARIANT_HELPER_CLASS FAR &rWrap)
  10961. {
  10962.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10963.     VARIANT lpObj;
  10964.     VariantInit(&lpObj);
  10965.  
  10966.     CHECK_IP(GetIP(), CVisioPage, getBackPage);
  10967.     if (NULL!=GetIP())
  10968.         hr= GetIP()->get_BackPage(&lpObj);
  10969.     CHECK_HRESULT(hr, CVisioPage, getBackPage);
  10970.  
  10971. #ifdef NO_VARIANT_HELPER
  10972.     VariantCopy(&rWrap, &lpObj);
  10973. #else
  10974.     rWrap= lpObj;
  10975. #endif  //  NO_VARIANT_HELPER
  10976.  
  10977.     VariantClear(&lpObj);
  10978.  
  10979.     return hr;
  10980. }
  10981.  
  10982.  
  10983. VW_INLINE HRESULT CVisioPage::putBackPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  10984. {
  10985.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10986.     CHECK_IP(GetIP(), CVisioPage, putBackPage);
  10987.     if (NULL!=GetIP())
  10988.         hr= GetIP()->put_BackPage(param01);
  10989.     CHECK_HRESULT(hr, CVisioPage, putBackPage);
  10990.     return hr;
  10991. }
  10992.  
  10993.  
  10994. VW_INLINE HRESULT CVisioPage::Layout()
  10995. {
  10996.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10997.     CHECK_IP(GetIP(), CVisioPage, Layout);
  10998.     if (NULL!=GetIP())
  10999.         hr= GetIP()->Layout();
  11000.     CHECK_HRESULT(hr, CVisioPage, Layout);
  11001.     return hr;
  11002. }
  11003.  
  11004.  
  11005. VW_INLINE HRESULT CVisioPage::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  11006. {
  11007.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11008.     CHECK_IP(GetIP(), CVisioPage, BoundingBox);
  11009.     if (NULL!=GetIP())
  11010.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  11011.     CHECK_HRESULT(hr, CVisioPage, BoundingBox);
  11012.     return hr;
  11013. }
  11014.  
  11015.  
  11016. VW_INLINE HRESULT CVisioPage::ID(short FAR *lpRet)
  11017. {
  11018.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11019.     CHECK_IP(GetIP(), CVisioPage, ID);
  11020.     if (NULL!=GetIP())
  11021.         hr= GetIP()->get_ID(lpRet);
  11022.     CHECK_HRESULT(hr, CVisioPage, ID);
  11023.     return hr;
  11024. }
  11025.  
  11026.  
  11027. VW_INLINE HRESULT CVisioPage::OLEObjects(CVisioOLEObjects FAR &rWrap)
  11028. {
  11029.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11030.     IVOLEObjects FAR *lpObj= NULL;
  11031.  
  11032.     CHECK_IP(GetIP(), CVisioPage, OLEObjects);
  11033.     if (NULL!=GetIP())
  11034.         hr= GetIP()->get_OLEObjects(&lpObj);
  11035.     CHECK_HRESULT(hr, CVisioPage, OLEObjects);
  11036.  
  11037.     rWrap= lpObj;
  11038.     if (NULL!=lpObj)
  11039.         lpObj->Release();
  11040.  
  11041.     return hr;
  11042. }
  11043.  
  11044.  
  11045.  
  11046. //  ***************************************************************************
  11047. //  Implementation of class CVisioPages
  11048.  
  11049. VW_INLINE HRESULT CVisioPages::Application(CVisioApplication FAR &rWrap)
  11050. {
  11051.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11052.     IVApplication FAR *lpObj= NULL;
  11053.  
  11054.     CHECK_IP(GetIP(), CVisioPages, Application);
  11055.     if (NULL!=GetIP())
  11056.         hr= GetIP()->get_Application(&lpObj);
  11057.     CHECK_HRESULT(hr, CVisioPages, Application);
  11058.  
  11059.     rWrap= lpObj;
  11060.     if (NULL!=lpObj)
  11061.         lpObj->Release();
  11062.  
  11063.     return hr;
  11064. }
  11065.  
  11066.  
  11067. VW_INLINE HRESULT CVisioPages::ObjectType(short FAR *lpRet)
  11068. {
  11069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11070.     CHECK_IP(GetIP(), CVisioPages, ObjectType);
  11071.     if (NULL!=GetIP())
  11072.         hr= GetIP()->get_ObjectType(lpRet);
  11073.     CHECK_HRESULT(hr, CVisioPages, ObjectType);
  11074.     return hr;
  11075. }
  11076.  
  11077.  
  11078. VW_INLINE HRESULT CVisioPages::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioPage FAR &rWrap)
  11079. {
  11080.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11081.     IVPage FAR *lpObj= NULL;
  11082.  
  11083.     CHECK_IP(GetIP(), CVisioPages, Item);
  11084.     if (NULL!=GetIP())
  11085.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  11086.     CHECK_HRESULT(hr, CVisioPages, Item);
  11087.  
  11088.     rWrap= lpObj;
  11089.     if (NULL!=lpObj)
  11090.         lpObj->Release();
  11091.  
  11092.     return hr;
  11093. }
  11094.  
  11095.  
  11096. VW_INLINE HRESULT CVisioPages::Count(short FAR *lpRet)
  11097. {
  11098.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11099.     CHECK_IP(GetIP(), CVisioPages, Count);
  11100.     if (NULL!=GetIP())
  11101.         hr= GetIP()->get_Count(lpRet);
  11102.     CHECK_HRESULT(hr, CVisioPages, Count);
  11103.     return hr;
  11104. }
  11105.  
  11106.  
  11107. VW_INLINE HRESULT CVisioPages::Add(CVisioPage FAR &rWrap)
  11108. {
  11109.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11110.     IVPage FAR *lpObj= NULL;
  11111.  
  11112.     CHECK_IP(GetIP(), CVisioPages, Add);
  11113.     if (NULL!=GetIP())
  11114.         hr= GetIP()->Add(&lpObj);
  11115.     CHECK_HRESULT(hr, CVisioPages, Add);
  11116.  
  11117.     rWrap= lpObj;
  11118.     if (NULL!=lpObj)
  11119.         lpObj->Release();
  11120.  
  11121.     return hr;
  11122. }
  11123.  
  11124.  
  11125. VW_INLINE HRESULT CVisioPages::Document(CVisioDocument FAR &rWrap)
  11126. {
  11127.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11128.     IVDocument FAR *lpObj= NULL;
  11129.  
  11130.     CHECK_IP(GetIP(), CVisioPages, Document);
  11131.     if (NULL!=GetIP())
  11132.         hr= GetIP()->get_Document(&lpObj);
  11133.     CHECK_HRESULT(hr, CVisioPages, Document);
  11134.  
  11135.     rWrap= lpObj;
  11136.     if (NULL!=lpObj)
  11137.         lpObj->Release();
  11138.  
  11139.     return hr;
  11140. }
  11141.  
  11142.  
  11143. VW_INLINE HRESULT CVisioPages::Stat(short FAR *lpRet)
  11144. {
  11145.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11146.     CHECK_IP(GetIP(), CVisioPages, Stat);
  11147.     if (NULL!=GetIP())
  11148.         hr= GetIP()->get_Stat(lpRet);
  11149.     CHECK_HRESULT(hr, CVisioPages, Stat);
  11150.     return hr;
  11151. }
  11152.  
  11153.  
  11154. VW_INLINE HRESULT CVisioPages::EventList(CVisioEventList FAR &rWrap)
  11155. {
  11156.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11157.     IVEventList FAR *lpObj= NULL;
  11158.  
  11159.     CHECK_IP(GetIP(), CVisioPages, EventList);
  11160.     if (NULL!=GetIP())
  11161.         hr= GetIP()->get_EventList(&lpObj);
  11162.     CHECK_HRESULT(hr, CVisioPages, EventList);
  11163.  
  11164.     rWrap= lpObj;
  11165.     if (NULL!=lpObj)
  11166.         lpObj->Release();
  11167.  
  11168.     return hr;
  11169. }
  11170.  
  11171.  
  11172. VW_INLINE HRESULT CVisioPages::PersistsEvents(short FAR *lpRet)
  11173. {
  11174.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11175.     CHECK_IP(GetIP(), CVisioPages, PersistsEvents);
  11176.     if (NULL!=GetIP())
  11177.         hr= GetIP()->get_PersistsEvents(lpRet);
  11178.     CHECK_HRESULT(hr, CVisioPages, PersistsEvents);
  11179.     return hr;
  11180. }
  11181.  
  11182.  
  11183. VW_INLINE HRESULT CVisioPages::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  11184. {
  11185.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11186.     CHECK_IP(GetIP(), CVisioPages, GetNames);
  11187.     if (NULL!=GetIP())
  11188.         hr= GetIP()->GetNames(NameArray);
  11189.     CHECK_HRESULT(hr, CVisioPages, GetNames);
  11190.     return hr;
  11191. }
  11192.  
  11193.  
  11194.  
  11195. //  ***************************************************************************
  11196. //  Implementation of class CVisioSelection
  11197.  
  11198. VW_INLINE HRESULT CVisioSelection::Application(CVisioApplication FAR &rWrap)
  11199. {
  11200.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11201.     IVApplication FAR *lpObj= NULL;
  11202.  
  11203.     CHECK_IP(GetIP(), CVisioSelection, Application);
  11204.     if (NULL!=GetIP())
  11205.         hr= GetIP()->get_Application(&lpObj);
  11206.     CHECK_HRESULT(hr, CVisioSelection, Application);
  11207.  
  11208.     rWrap= lpObj;
  11209.     if (NULL!=lpObj)
  11210.         lpObj->Release();
  11211.  
  11212.     return hr;
  11213. }
  11214.  
  11215.  
  11216. VW_INLINE HRESULT CVisioSelection::Stat(short FAR *lpRet)
  11217. {
  11218.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11219.     CHECK_IP(GetIP(), CVisioSelection, Stat);
  11220.     if (NULL!=GetIP())
  11221.         hr= GetIP()->get_Stat(lpRet);
  11222.     CHECK_HRESULT(hr, CVisioSelection, Stat);
  11223.     return hr;
  11224. }
  11225.  
  11226.  
  11227. VW_INLINE HRESULT CVisioSelection::ObjectType(short FAR *lpRet)
  11228. {
  11229.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11230.     CHECK_IP(GetIP(), CVisioSelection, ObjectType);
  11231.     if (NULL!=GetIP())
  11232.         hr= GetIP()->get_ObjectType(lpRet);
  11233.     CHECK_HRESULT(hr, CVisioSelection, ObjectType);
  11234.     return hr;
  11235. }
  11236.  
  11237.  
  11238. VW_INLINE HRESULT CVisioSelection::Item(short Index, CVisioShape FAR &rWrap)
  11239. {
  11240.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11241.     IVShape FAR *lpObj= NULL;
  11242.  
  11243.     CHECK_IP(GetIP(), CVisioSelection, Item);
  11244.     if (NULL!=GetIP())
  11245.         hr= GetIP()->get_Item(Index, &lpObj);
  11246.     CHECK_HRESULT(hr, CVisioSelection, Item);
  11247.  
  11248.     rWrap= lpObj;
  11249.     if (NULL!=lpObj)
  11250.         lpObj->Release();
  11251.  
  11252.     return hr;
  11253. }
  11254.  
  11255.  
  11256. VW_INLINE HRESULT CVisioSelection::Count(short FAR *lpRet)
  11257. {
  11258.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11259.     CHECK_IP(GetIP(), CVisioSelection, Count);
  11260.     if (NULL!=GetIP())
  11261.         hr= GetIP()->get_Count(lpRet);
  11262.     CHECK_HRESULT(hr, CVisioSelection, Count);
  11263.     return hr;
  11264. }
  11265.  
  11266.  
  11267. VW_INLINE HRESULT CVisioSelection::Export(BSTR_HELPER_CLASS FAR &FileName)
  11268. {
  11269.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11270.     CHECK_IP(GetIP(), CVisioSelection, Export);
  11271.     if (NULL!=GetIP())
  11272.         hr= GetIP()->Export(FileName);
  11273.     CHECK_HRESULT(hr, CVisioSelection, Export);
  11274.     return hr;
  11275. }
  11276.  
  11277.  
  11278. VW_INLINE HRESULT CVisioSelection::Document(CVisioDocument FAR &rWrap)
  11279. {
  11280.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11281.     IVDocument FAR *lpObj= NULL;
  11282.  
  11283.     CHECK_IP(GetIP(), CVisioSelection, Document);
  11284.     if (NULL!=GetIP())
  11285.         hr= GetIP()->get_Document(&lpObj);
  11286.     CHECK_HRESULT(hr, CVisioSelection, Document);
  11287.  
  11288.     rWrap= lpObj;
  11289.     if (NULL!=lpObj)
  11290.         lpObj->Release();
  11291.  
  11292.     return hr;
  11293. }
  11294.  
  11295.  
  11296. VW_INLINE HRESULT CVisioSelection::ContainingPage(CVisioPage FAR &rWrap)
  11297. {
  11298.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11299.     IVPage FAR *lpObj= NULL;
  11300.  
  11301.     CHECK_IP(GetIP(), CVisioSelection, ContainingPage);
  11302.     if (NULL!=GetIP())
  11303.         hr= GetIP()->get_ContainingPage(&lpObj);
  11304.     CHECK_HRESULT(hr, CVisioSelection, ContainingPage);
  11305.  
  11306.     rWrap= lpObj;
  11307.     if (NULL!=lpObj)
  11308.         lpObj->Release();
  11309.  
  11310.     return hr;
  11311. }
  11312.  
  11313.  
  11314. VW_INLINE HRESULT CVisioSelection::ContainingMaster(CVisioMaster FAR &rWrap)
  11315. {
  11316.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11317.     IVMaster FAR *lpObj= NULL;
  11318.  
  11319.     CHECK_IP(GetIP(), CVisioSelection, ContainingMaster);
  11320.     if (NULL!=GetIP())
  11321.         hr= GetIP()->get_ContainingMaster(&lpObj);
  11322.     CHECK_HRESULT(hr, CVisioSelection, ContainingMaster);
  11323.  
  11324.     rWrap= lpObj;
  11325.     if (NULL!=lpObj)
  11326.         lpObj->Release();
  11327.  
  11328.     return hr;
  11329. }
  11330.  
  11331.  
  11332. VW_INLINE HRESULT CVisioSelection::ContainingShape(CVisioShape FAR &rWrap)
  11333. {
  11334.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11335.     IVShape FAR *lpObj= NULL;
  11336.  
  11337.     CHECK_IP(GetIP(), CVisioSelection, ContainingShape);
  11338.     if (NULL!=GetIP())
  11339.         hr= GetIP()->get_ContainingShape(&lpObj);
  11340.     CHECK_HRESULT(hr, CVisioSelection, ContainingShape);
  11341.  
  11342.     rWrap= lpObj;
  11343.     if (NULL!=lpObj)
  11344.         lpObj->Release();
  11345.  
  11346.     return hr;
  11347. }
  11348.  
  11349.  
  11350. VW_INLINE HRESULT CVisioSelection::BringForward()
  11351. {
  11352.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11353.     CHECK_IP(GetIP(), CVisioSelection, BringForward);
  11354.     if (NULL!=GetIP())
  11355.         hr= GetIP()->BringForward();
  11356.     CHECK_HRESULT(hr, CVisioSelection, BringForward);
  11357.     return hr;
  11358. }
  11359.  
  11360.  
  11361. VW_INLINE HRESULT CVisioSelection::BringToFront()
  11362. {
  11363.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11364.     CHECK_IP(GetIP(), CVisioSelection, BringToFront);
  11365.     if (NULL!=GetIP())
  11366.         hr= GetIP()->BringToFront();
  11367.     CHECK_HRESULT(hr, CVisioSelection, BringToFront);
  11368.     return hr;
  11369. }
  11370.  
  11371.  
  11372. VW_INLINE HRESULT CVisioSelection::SendBackward()
  11373. {
  11374.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11375.     CHECK_IP(GetIP(), CVisioSelection, SendBackward);
  11376.     if (NULL!=GetIP())
  11377.         hr= GetIP()->SendBackward();
  11378.     CHECK_HRESULT(hr, CVisioSelection, SendBackward);
  11379.     return hr;
  11380. }
  11381.  
  11382.  
  11383. VW_INLINE HRESULT CVisioSelection::SendToBack()
  11384. {
  11385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11386.     CHECK_IP(GetIP(), CVisioSelection, SendToBack);
  11387.     if (NULL!=GetIP())
  11388.         hr= GetIP()->SendToBack();
  11389.     CHECK_HRESULT(hr, CVisioSelection, SendToBack);
  11390.     return hr;
  11391. }
  11392.  
  11393.  
  11394. VW_INLINE HRESULT CVisioSelection::getStyle(BSTR_HELPER_CLASS FAR &rWrap)
  11395. {
  11396.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11397.     BSTR lpObj= NULL;
  11398.  
  11399.     CHECK_IP(GetIP(), CVisioSelection, getStyle);
  11400.     if (NULL!=GetIP())
  11401.         hr= GetIP()->get_Style(&lpObj);
  11402.     CHECK_HRESULT(hr, CVisioSelection, getStyle);
  11403.  
  11404.     rWrap= lpObj;
  11405. #ifndef NO_BSTR_HELPER
  11406.     if (NULL!=lpObj)
  11407.         SysFreeString(lpObj);
  11408. #endif  //  NO_BSTR_HELPER
  11409.  
  11410.     return hr;
  11411. }
  11412.  
  11413.  
  11414. VW_INLINE HRESULT CVisioSelection::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11415. {
  11416.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11417.     CHECK_IP(GetIP(), CVisioSelection, putStyle);
  11418.     if (NULL!=GetIP())
  11419.         hr= GetIP()->put_Style(param01);
  11420.     CHECK_HRESULT(hr, CVisioSelection, putStyle);
  11421.     return hr;
  11422. }
  11423.  
  11424.  
  11425. VW_INLINE HRESULT CVisioSelection::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11426. {
  11427.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11428.     CHECK_IP(GetIP(), CVisioSelection, StyleKeepFmt);
  11429.     if (NULL!=GetIP())
  11430.         hr= GetIP()->put_StyleKeepFmt(param01);
  11431.     CHECK_HRESULT(hr, CVisioSelection, StyleKeepFmt);
  11432.     return hr;
  11433. }
  11434.  
  11435.  
  11436. VW_INLINE HRESULT CVisioSelection::getLineStyle(BSTR_HELPER_CLASS FAR &rWrap)
  11437. {
  11438.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11439.     BSTR lpObj= NULL;
  11440.  
  11441.     CHECK_IP(GetIP(), CVisioSelection, getLineStyle);
  11442.     if (NULL!=GetIP())
  11443.         hr= GetIP()->get_LineStyle(&lpObj);
  11444.     CHECK_HRESULT(hr, CVisioSelection, getLineStyle);
  11445.  
  11446.     rWrap= lpObj;
  11447. #ifndef NO_BSTR_HELPER
  11448.     if (NULL!=lpObj)
  11449.         SysFreeString(lpObj);
  11450. #endif  //  NO_BSTR_HELPER
  11451.  
  11452.     return hr;
  11453. }
  11454.  
  11455.  
  11456. VW_INLINE HRESULT CVisioSelection::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11457. {
  11458.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11459.     CHECK_IP(GetIP(), CVisioSelection, putLineStyle);
  11460.     if (NULL!=GetIP())
  11461.         hr= GetIP()->put_LineStyle(param01);
  11462.     CHECK_HRESULT(hr, CVisioSelection, putLineStyle);
  11463.     return hr;
  11464. }
  11465.  
  11466.  
  11467. VW_INLINE HRESULT CVisioSelection::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11468. {
  11469.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11470.     CHECK_IP(GetIP(), CVisioSelection, LineStyleKeepFmt);
  11471.     if (NULL!=GetIP())
  11472.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  11473.     CHECK_HRESULT(hr, CVisioSelection, LineStyleKeepFmt);
  11474.     return hr;
  11475. }
  11476.  
  11477.  
  11478. VW_INLINE HRESULT CVisioSelection::getFillStyle(BSTR_HELPER_CLASS FAR &rWrap)
  11479. {
  11480.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11481.     BSTR lpObj= NULL;
  11482.  
  11483.     CHECK_IP(GetIP(), CVisioSelection, getFillStyle);
  11484.     if (NULL!=GetIP())
  11485.         hr= GetIP()->get_FillStyle(&lpObj);
  11486.     CHECK_HRESULT(hr, CVisioSelection, getFillStyle);
  11487.  
  11488.     rWrap= lpObj;
  11489. #ifndef NO_BSTR_HELPER
  11490.     if (NULL!=lpObj)
  11491.         SysFreeString(lpObj);
  11492. #endif  //  NO_BSTR_HELPER
  11493.  
  11494.     return hr;
  11495. }
  11496.  
  11497.  
  11498. VW_INLINE HRESULT CVisioSelection::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11499. {
  11500.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11501.     CHECK_IP(GetIP(), CVisioSelection, putFillStyle);
  11502.     if (NULL!=GetIP())
  11503.         hr= GetIP()->put_FillStyle(param01);
  11504.     CHECK_HRESULT(hr, CVisioSelection, putFillStyle);
  11505.     return hr;
  11506. }
  11507.  
  11508.  
  11509. VW_INLINE HRESULT CVisioSelection::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11510. {
  11511.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11512.     CHECK_IP(GetIP(), CVisioSelection, FillStyleKeepFmt);
  11513.     if (NULL!=GetIP())
  11514.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  11515.     CHECK_HRESULT(hr, CVisioSelection, FillStyleKeepFmt);
  11516.     return hr;
  11517. }
  11518.  
  11519.  
  11520. VW_INLINE HRESULT CVisioSelection::getTextStyle(BSTR_HELPER_CLASS FAR &rWrap)
  11521. {
  11522.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11523.     BSTR lpObj= NULL;
  11524.  
  11525.     CHECK_IP(GetIP(), CVisioSelection, getTextStyle);
  11526.     if (NULL!=GetIP())
  11527.         hr= GetIP()->get_TextStyle(&lpObj);
  11528.     CHECK_HRESULT(hr, CVisioSelection, getTextStyle);
  11529.  
  11530.     rWrap= lpObj;
  11531. #ifndef NO_BSTR_HELPER
  11532.     if (NULL!=lpObj)
  11533.         SysFreeString(lpObj);
  11534. #endif  //  NO_BSTR_HELPER
  11535.  
  11536.     return hr;
  11537. }
  11538.  
  11539.  
  11540. VW_INLINE HRESULT CVisioSelection::putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11541. {
  11542.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11543.     CHECK_IP(GetIP(), CVisioSelection, putTextStyle);
  11544.     if (NULL!=GetIP())
  11545.         hr= GetIP()->put_TextStyle(param01);
  11546.     CHECK_HRESULT(hr, CVisioSelection, putTextStyle);
  11547.     return hr;
  11548. }
  11549.  
  11550.  
  11551. VW_INLINE HRESULT CVisioSelection::TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11552. {
  11553.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11554.     CHECK_IP(GetIP(), CVisioSelection, TextStyleKeepFmt);
  11555.     if (NULL!=GetIP())
  11556.         hr= GetIP()->put_TextStyleKeepFmt(param01);
  11557.     CHECK_HRESULT(hr, CVisioSelection, TextStyleKeepFmt);
  11558.     return hr;
  11559. }
  11560.  
  11561.  
  11562. VW_INLINE HRESULT CVisioSelection::Combine()
  11563. {
  11564.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11565.     CHECK_IP(GetIP(), CVisioSelection, Combine);
  11566.     if (NULL!=GetIP())
  11567.         hr= GetIP()->Combine();
  11568.     CHECK_HRESULT(hr, CVisioSelection, Combine);
  11569.     return hr;
  11570. }
  11571.  
  11572.  
  11573. VW_INLINE HRESULT CVisioSelection::Fragment()
  11574. {
  11575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11576.     CHECK_IP(GetIP(), CVisioSelection, Fragment);
  11577.     if (NULL!=GetIP())
  11578.         hr= GetIP()->Fragment();
  11579.     CHECK_HRESULT(hr, CVisioSelection, Fragment);
  11580.     return hr;
  11581. }
  11582.  
  11583.  
  11584. VW_INLINE HRESULT CVisioSelection::Intersect()
  11585. {
  11586.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11587.     CHECK_IP(GetIP(), CVisioSelection, Intersect);
  11588.     if (NULL!=GetIP())
  11589.         hr= GetIP()->Intersect();
  11590.     CHECK_HRESULT(hr, CVisioSelection, Intersect);
  11591.     return hr;
  11592. }
  11593.  
  11594.  
  11595. VW_INLINE HRESULT CVisioSelection::Subtract()
  11596. {
  11597.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11598.     CHECK_IP(GetIP(), CVisioSelection, Subtract);
  11599.     if (NULL!=GetIP())
  11600.         hr= GetIP()->Subtract();
  11601.     CHECK_HRESULT(hr, CVisioSelection, Subtract);
  11602.     return hr;
  11603. }
  11604.  
  11605.  
  11606. VW_INLINE HRESULT CVisioSelection::Union()
  11607. {
  11608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11609.     CHECK_IP(GetIP(), CVisioSelection, Union);
  11610.     if (NULL!=GetIP())
  11611.         hr= GetIP()->Union();
  11612.     CHECK_HRESULT(hr, CVisioSelection, Union);
  11613.     return hr;
  11614. }
  11615.  
  11616.  
  11617. VW_INLINE HRESULT CVisioSelection::FlipHorizontal()
  11618. {
  11619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11620.     CHECK_IP(GetIP(), CVisioSelection, FlipHorizontal);
  11621.     if (NULL!=GetIP())
  11622.         hr= GetIP()->FlipHorizontal();
  11623.     CHECK_HRESULT(hr, CVisioSelection, FlipHorizontal);
  11624.     return hr;
  11625. }
  11626.  
  11627.  
  11628. VW_INLINE HRESULT CVisioSelection::FlipVertical()
  11629. {
  11630.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11631.     CHECK_IP(GetIP(), CVisioSelection, FlipVertical);
  11632.     if (NULL!=GetIP())
  11633.         hr= GetIP()->FlipVertical();
  11634.     CHECK_HRESULT(hr, CVisioSelection, FlipVertical);
  11635.     return hr;
  11636. }
  11637.  
  11638.  
  11639. VW_INLINE HRESULT CVisioSelection::ReverseEnds()
  11640. {
  11641.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11642.     CHECK_IP(GetIP(), CVisioSelection, ReverseEnds);
  11643.     if (NULL!=GetIP())
  11644.         hr= GetIP()->ReverseEnds();
  11645.     CHECK_HRESULT(hr, CVisioSelection, ReverseEnds);
  11646.     return hr;
  11647. }
  11648.  
  11649.  
  11650. VW_INLINE HRESULT CVisioSelection::Rotate90()
  11651. {
  11652.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11653.     CHECK_IP(GetIP(), CVisioSelection, Rotate90);
  11654.     if (NULL!=GetIP())
  11655.         hr= GetIP()->Rotate90();
  11656.     CHECK_HRESULT(hr, CVisioSelection, Rotate90);
  11657.     return hr;
  11658. }
  11659.  
  11660.  
  11661. VW_INLINE HRESULT CVisioSelection::Copy()
  11662. {
  11663.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11664.     CHECK_IP(GetIP(), CVisioSelection, Copy);
  11665.     if (NULL!=GetIP())
  11666.         hr= GetIP()->Copy();
  11667.     CHECK_HRESULT(hr, CVisioSelection, Copy);
  11668.     return hr;
  11669. }
  11670.  
  11671.  
  11672. VW_INLINE HRESULT CVisioSelection::Cut()
  11673. {
  11674.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11675.     CHECK_IP(GetIP(), CVisioSelection, Cut);
  11676.     if (NULL!=GetIP())
  11677.         hr= GetIP()->Cut();
  11678.     CHECK_HRESULT(hr, CVisioSelection, Cut);
  11679.     return hr;
  11680. }
  11681.  
  11682.  
  11683. VW_INLINE HRESULT CVisioSelection::Delete()
  11684. {
  11685.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11686.     CHECK_IP(GetIP(), CVisioSelection, Delete);
  11687.     if (NULL!=GetIP())
  11688.         hr= GetIP()->Delete();
  11689.     CHECK_HRESULT(hr, CVisioSelection, Delete);
  11690.     return hr;
  11691. }
  11692.  
  11693.  
  11694. VW_INLINE HRESULT CVisioSelection::Duplicate()
  11695. {
  11696.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11697.     CHECK_IP(GetIP(), CVisioSelection, Duplicate);
  11698.     if (NULL!=GetIP())
  11699.         hr= GetIP()->Duplicate();
  11700.     CHECK_HRESULT(hr, CVisioSelection, Duplicate);
  11701.     return hr;
  11702. }
  11703.  
  11704.  
  11705. VW_INLINE HRESULT CVisioSelection::Group()
  11706. {
  11707.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11708.     CHECK_IP(GetIP(), CVisioSelection, Group);
  11709.     if (NULL!=GetIP())
  11710.         hr= GetIP()->Group();
  11711.     CHECK_HRESULT(hr, CVisioSelection, Group);
  11712.     return hr;
  11713. }
  11714.  
  11715.  
  11716. VW_INLINE HRESULT CVisioSelection::ConvertToGroup()
  11717. {
  11718.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11719.     CHECK_IP(GetIP(), CVisioSelection, ConvertToGroup);
  11720.     if (NULL!=GetIP())
  11721.         hr= GetIP()->ConvertToGroup();
  11722.     CHECK_HRESULT(hr, CVisioSelection, ConvertToGroup);
  11723.     return hr;
  11724. }
  11725.  
  11726.  
  11727. VW_INLINE HRESULT CVisioSelection::Ungroup()
  11728. {
  11729.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11730.     CHECK_IP(GetIP(), CVisioSelection, Ungroup);
  11731.     if (NULL!=GetIP())
  11732.         hr= GetIP()->Ungroup();
  11733.     CHECK_HRESULT(hr, CVisioSelection, Ungroup);
  11734.     return hr;
  11735. }
  11736.  
  11737.  
  11738. VW_INLINE HRESULT CVisioSelection::SelectAll()
  11739. {
  11740.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11741.     CHECK_IP(GetIP(), CVisioSelection, SelectAll);
  11742.     if (NULL!=GetIP())
  11743.         hr= GetIP()->SelectAll();
  11744.     CHECK_HRESULT(hr, CVisioSelection, SelectAll);
  11745.     return hr;
  11746. }
  11747.  
  11748.  
  11749. VW_INLINE HRESULT CVisioSelection::DeselectAll()
  11750. {
  11751.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11752.     CHECK_IP(GetIP(), CVisioSelection, DeselectAll);
  11753.     if (NULL!=GetIP())
  11754.         hr= GetIP()->DeselectAll();
  11755.     CHECK_HRESULT(hr, CVisioSelection, DeselectAll);
  11756.     return hr;
  11757. }
  11758.  
  11759.  
  11760. VW_INLINE HRESULT CVisioSelection::Select(CVisioShape FAR &SheetObject, short SelectAction)
  11761. {
  11762.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11763.     CHECK_IP(GetIP(), CVisioSelection, Select);
  11764.     if (NULL!=GetIP())
  11765.         hr= GetIP()->Select(SheetObject, SelectAction);
  11766.     CHECK_HRESULT(hr, CVisioSelection, Select);
  11767.     return hr;
  11768. }
  11769.  
  11770.  
  11771. VW_INLINE HRESULT CVisioSelection::EventList(CVisioEventList FAR &rWrap)
  11772. {
  11773.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11774.     IVEventList FAR *lpObj= NULL;
  11775.  
  11776.     CHECK_IP(GetIP(), CVisioSelection, EventList);
  11777.     if (NULL!=GetIP())
  11778.         hr= GetIP()->get_EventList(&lpObj);
  11779.     CHECK_HRESULT(hr, CVisioSelection, EventList);
  11780.  
  11781.     rWrap= lpObj;
  11782.     if (NULL!=lpObj)
  11783.         lpObj->Release();
  11784.  
  11785.     return hr;
  11786. }
  11787.  
  11788.  
  11789. VW_INLINE HRESULT CVisioSelection::PersistsEvents(short FAR *lpRet)
  11790. {
  11791.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11792.     CHECK_IP(GetIP(), CVisioSelection, PersistsEvents);
  11793.     if (NULL!=GetIP())
  11794.         hr= GetIP()->get_PersistsEvents(lpRet);
  11795.     CHECK_HRESULT(hr, CVisioSelection, PersistsEvents);
  11796.     return hr;
  11797. }
  11798.  
  11799.  
  11800. VW_INLINE HRESULT CVisioSelection::Trim()
  11801. {
  11802.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11803.     CHECK_IP(GetIP(), CVisioSelection, Trim);
  11804.     if (NULL!=GetIP())
  11805.         hr= GetIP()->Trim();
  11806.     CHECK_HRESULT(hr, CVisioSelection, Trim);
  11807.     return hr;
  11808. }
  11809.  
  11810.  
  11811. VW_INLINE HRESULT CVisioSelection::Join()
  11812. {
  11813.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11814.     CHECK_IP(GetIP(), CVisioSelection, Join);
  11815.     if (NULL!=GetIP())
  11816.         hr= GetIP()->Join();
  11817.     CHECK_HRESULT(hr, CVisioSelection, Join);
  11818.     return hr;
  11819. }
  11820.  
  11821.  
  11822. VW_INLINE HRESULT CVisioSelection::FitCurve(double Tolerance, short Flags)
  11823. {
  11824.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11825.     CHECK_IP(GetIP(), CVisioSelection, FitCurve);
  11826.     if (NULL!=GetIP())
  11827.         hr= GetIP()->FitCurve(Tolerance, Flags);
  11828.     CHECK_HRESULT(hr, CVisioSelection, FitCurve);
  11829.     return hr;
  11830. }
  11831.  
  11832.  
  11833. VW_INLINE HRESULT CVisioSelection::Layout()
  11834. {
  11835.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11836.     CHECK_IP(GetIP(), CVisioSelection, Layout);
  11837.     if (NULL!=GetIP())
  11838.         hr= GetIP()->Layout();
  11839.     CHECK_HRESULT(hr, CVisioSelection, Layout);
  11840.     return hr;
  11841. }
  11842.  
  11843.  
  11844. VW_INLINE HRESULT CVisioSelection::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  11845. {
  11846.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11847.     CHECK_IP(GetIP(), CVisioSelection, BoundingBox);
  11848.     if (NULL!=GetIP())
  11849.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  11850.     CHECK_HRESULT(hr, CVisioSelection, BoundingBox);
  11851.     return hr;
  11852. }
  11853.  
  11854.  
  11855.  
  11856. //  ***************************************************************************
  11857. //  Implementation of class CVisioShape
  11858.  
  11859. VW_INLINE HRESULT CVisioShape::Group()
  11860. {
  11861.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11862.     CHECK_IP(GetIP(), CVisioShape, Group);
  11863.     if (NULL!=GetIP())
  11864.         hr= GetIP()->Group();
  11865.     CHECK_HRESULT(hr, CVisioShape, Group);
  11866.     return hr;
  11867. }
  11868.  
  11869.  
  11870. VW_INLINE HRESULT CVisioShape::BringForward()
  11871. {
  11872.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11873.     CHECK_IP(GetIP(), CVisioShape, BringForward);
  11874.     if (NULL!=GetIP())
  11875.         hr= GetIP()->BringForward();
  11876.     CHECK_HRESULT(hr, CVisioShape, BringForward);
  11877.     return hr;
  11878. }
  11879.  
  11880.  
  11881. VW_INLINE HRESULT CVisioShape::BringToFront()
  11882. {
  11883.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11884.     CHECK_IP(GetIP(), CVisioShape, BringToFront);
  11885.     if (NULL!=GetIP())
  11886.         hr= GetIP()->BringToFront();
  11887.     CHECK_HRESULT(hr, CVisioShape, BringToFront);
  11888.     return hr;
  11889. }
  11890.  
  11891.  
  11892. VW_INLINE HRESULT CVisioShape::ConvertToGroup()
  11893. {
  11894.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11895.     CHECK_IP(GetIP(), CVisioShape, ConvertToGroup);
  11896.     if (NULL!=GetIP())
  11897.         hr= GetIP()->ConvertToGroup();
  11898.     CHECK_HRESULT(hr, CVisioShape, ConvertToGroup);
  11899.     return hr;
  11900. }
  11901.  
  11902.  
  11903. VW_INLINE HRESULT CVisioShape::FlipHorizontal()
  11904. {
  11905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11906.     CHECK_IP(GetIP(), CVisioShape, FlipHorizontal);
  11907.     if (NULL!=GetIP())
  11908.         hr= GetIP()->FlipHorizontal();
  11909.     CHECK_HRESULT(hr, CVisioShape, FlipHorizontal);
  11910.     return hr;
  11911. }
  11912.  
  11913.  
  11914. VW_INLINE HRESULT CVisioShape::FlipVertical()
  11915. {
  11916.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11917.     CHECK_IP(GetIP(), CVisioShape, FlipVertical);
  11918.     if (NULL!=GetIP())
  11919.         hr= GetIP()->FlipVertical();
  11920.     CHECK_HRESULT(hr, CVisioShape, FlipVertical);
  11921.     return hr;
  11922. }
  11923.  
  11924.  
  11925. VW_INLINE HRESULT CVisioShape::ReverseEnds()
  11926. {
  11927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11928.     CHECK_IP(GetIP(), CVisioShape, ReverseEnds);
  11929.     if (NULL!=GetIP())
  11930.         hr= GetIP()->ReverseEnds();
  11931.     CHECK_HRESULT(hr, CVisioShape, ReverseEnds);
  11932.     return hr;
  11933. }
  11934.  
  11935.  
  11936. VW_INLINE HRESULT CVisioShape::SendBackward()
  11937. {
  11938.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11939.     CHECK_IP(GetIP(), CVisioShape, SendBackward);
  11940.     if (NULL!=GetIP())
  11941.         hr= GetIP()->SendBackward();
  11942.     CHECK_HRESULT(hr, CVisioShape, SendBackward);
  11943.     return hr;
  11944. }
  11945.  
  11946.  
  11947. VW_INLINE HRESULT CVisioShape::SendToBack()
  11948. {
  11949.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11950.     CHECK_IP(GetIP(), CVisioShape, SendToBack);
  11951.     if (NULL!=GetIP())
  11952.         hr= GetIP()->SendToBack();
  11953.     CHECK_HRESULT(hr, CVisioShape, SendToBack);
  11954.     return hr;
  11955. }
  11956.  
  11957.  
  11958. VW_INLINE HRESULT CVisioShape::Rotate90()
  11959. {
  11960.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11961.     CHECK_IP(GetIP(), CVisioShape, Rotate90);
  11962.     if (NULL!=GetIP())
  11963.         hr= GetIP()->Rotate90();
  11964.     CHECK_HRESULT(hr, CVisioShape, Rotate90);
  11965.     return hr;
  11966. }
  11967.  
  11968.  
  11969. VW_INLINE HRESULT CVisioShape::Ungroup()
  11970. {
  11971.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11972.     CHECK_IP(GetIP(), CVisioShape, Ungroup);
  11973.     if (NULL!=GetIP())
  11974.         hr= GetIP()->Ungroup();
  11975.     CHECK_HRESULT(hr, CVisioShape, Ungroup);
  11976.     return hr;
  11977. }
  11978.  
  11979.  
  11980. VW_INLINE HRESULT CVisioShape::Document(CVisioDocument FAR &rWrap)
  11981. {
  11982.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11983.     IVDocument FAR *lpObj= NULL;
  11984.  
  11985.     CHECK_IP(GetIP(), CVisioShape, Document);
  11986.     if (NULL!=GetIP())
  11987.         hr= GetIP()->get_Document(&lpObj);
  11988.     CHECK_HRESULT(hr, CVisioShape, Document);
  11989.  
  11990.     rWrap= lpObj;
  11991.     if (NULL!=lpObj)
  11992.         lpObj->Release();
  11993.  
  11994.     return hr;
  11995. }
  11996.  
  11997.  
  11998. VW_INLINE HRESULT CVisioShape::Parent(IDispatch FAR *FAR *lpRet)
  11999. {
  12000.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12001.     CHECK_IP(GetIP(), CVisioShape, Parent);
  12002.     if (NULL!=GetIP())
  12003.         hr= GetIP()->get_Parent(lpRet);
  12004.     CHECK_HRESULT(hr, CVisioShape, Parent);
  12005.     return hr;
  12006. }
  12007.  
  12008.  
  12009. VW_INLINE HRESULT CVisioShape::Application(CVisioApplication FAR &rWrap)
  12010. {
  12011.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12012.     IVApplication FAR *lpObj= NULL;
  12013.  
  12014.     CHECK_IP(GetIP(), CVisioShape, Application);
  12015.     if (NULL!=GetIP())
  12016.         hr= GetIP()->get_Application(&lpObj);
  12017.     CHECK_HRESULT(hr, CVisioShape, Application);
  12018.  
  12019.     rWrap= lpObj;
  12020.     if (NULL!=lpObj)
  12021.         lpObj->Release();
  12022.  
  12023.     return hr;
  12024. }
  12025.  
  12026.  
  12027. VW_INLINE HRESULT CVisioShape::Stat(short FAR *lpRet)
  12028. {
  12029.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12030.     CHECK_IP(GetIP(), CVisioShape, Stat);
  12031.     if (NULL!=GetIP())
  12032.         hr= GetIP()->get_Stat(lpRet);
  12033.     CHECK_HRESULT(hr, CVisioShape, Stat);
  12034.     return hr;
  12035. }
  12036.  
  12037.  
  12038. VW_INLINE HRESULT CVisioShape::Master(CVisioMaster FAR &rWrap)
  12039. {
  12040.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12041.     IVMaster FAR *lpObj= NULL;
  12042.  
  12043.     CHECK_IP(GetIP(), CVisioShape, Master);
  12044.     if (NULL!=GetIP())
  12045.         hr= GetIP()->get_Master(&lpObj);
  12046.     CHECK_HRESULT(hr, CVisioShape, Master);
  12047.  
  12048.     rWrap= lpObj;
  12049.     if (NULL!=lpObj)
  12050.         lpObj->Release();
  12051.  
  12052.     return hr;
  12053. }
  12054.  
  12055.  
  12056. VW_INLINE HRESULT CVisioShape::Type(short FAR *lpRet)
  12057. {
  12058.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12059.     CHECK_IP(GetIP(), CVisioShape, Type);
  12060.     if (NULL!=GetIP())
  12061.         hr= GetIP()->get_Type(lpRet);
  12062.     CHECK_HRESULT(hr, CVisioShape, Type);
  12063.     return hr;
  12064. }
  12065.  
  12066.  
  12067. VW_INLINE HRESULT CVisioShape::ObjectType(short FAR *lpRet)
  12068. {
  12069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12070.     CHECK_IP(GetIP(), CVisioShape, ObjectType);
  12071.     if (NULL!=GetIP())
  12072.         hr= GetIP()->get_ObjectType(lpRet);
  12073.     CHECK_HRESULT(hr, CVisioShape, ObjectType);
  12074.     return hr;
  12075. }
  12076.  
  12077.  
  12078. VW_INLINE HRESULT CVisioShape::Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap)
  12079. {
  12080.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12081.     IVCell FAR *lpObj= NULL;
  12082.  
  12083.     CHECK_IP(GetIP(), CVisioShape, Cells);
  12084.     if (NULL!=GetIP())
  12085.         hr= GetIP()->get_Cells(CellName, &lpObj);
  12086.     CHECK_HRESULT(hr, CVisioShape, Cells);
  12087.  
  12088.     rWrap= lpObj;
  12089.     if (NULL!=lpObj)
  12090.         lpObj->Release();
  12091.  
  12092.     return hr;
  12093. }
  12094.  
  12095.  
  12096. VW_INLINE HRESULT CVisioShape::CellsSRC(short Section, short Row, short Column, CVisioCell FAR &rWrap)
  12097. {
  12098.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12099.     IVCell FAR *lpObj= NULL;
  12100.  
  12101.     CHECK_IP(GetIP(), CVisioShape, CellsSRC);
  12102.     if (NULL!=GetIP())
  12103.         hr= GetIP()->get_CellsSRC(Section, Row, Column, &lpObj);
  12104.     CHECK_HRESULT(hr, CVisioShape, CellsSRC);
  12105.  
  12106.     rWrap= lpObj;
  12107.     if (NULL!=lpObj)
  12108.         lpObj->Release();
  12109.  
  12110.     return hr;
  12111. }
  12112.  
  12113.  
  12114. VW_INLINE HRESULT CVisioShape::Shapes(CVisioShapes FAR &rWrap)
  12115. {
  12116.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12117.     IVShapes FAR *lpObj= NULL;
  12118.  
  12119.     CHECK_IP(GetIP(), CVisioShape, Shapes);
  12120.     if (NULL!=GetIP())
  12121.         hr= GetIP()->get_Shapes(&lpObj);
  12122.     CHECK_HRESULT(hr, CVisioShape, Shapes);
  12123.  
  12124.     rWrap= lpObj;
  12125.     if (NULL!=lpObj)
  12126.         lpObj->Release();
  12127.  
  12128.     return hr;
  12129. }
  12130.  
  12131.  
  12132. VW_INLINE HRESULT CVisioShape::getData1(BSTR_HELPER_CLASS FAR &rWrap)
  12133. {
  12134.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12135.     BSTR lpObj= NULL;
  12136.  
  12137.     CHECK_IP(GetIP(), CVisioShape, getData1);
  12138.     if (NULL!=GetIP())
  12139.         hr= GetIP()->get_Data1(&lpObj);
  12140.     CHECK_HRESULT(hr, CVisioShape, getData1);
  12141.  
  12142.     rWrap= lpObj;
  12143. #ifndef NO_BSTR_HELPER
  12144.     if (NULL!=lpObj)
  12145.         SysFreeString(lpObj);
  12146. #endif  //  NO_BSTR_HELPER
  12147.  
  12148.     return hr;
  12149. }
  12150.  
  12151.  
  12152. VW_INLINE HRESULT CVisioShape::putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12153. {
  12154.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12155.     CHECK_IP(GetIP(), CVisioShape, putData1);
  12156.     if (NULL!=GetIP())
  12157.         hr= GetIP()->put_Data1(param01);
  12158.     CHECK_HRESULT(hr, CVisioShape, putData1);
  12159.     return hr;
  12160. }
  12161.  
  12162.  
  12163. VW_INLINE HRESULT CVisioShape::getData2(BSTR_HELPER_CLASS FAR &rWrap)
  12164. {
  12165.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12166.     BSTR lpObj= NULL;
  12167.  
  12168.     CHECK_IP(GetIP(), CVisioShape, getData2);
  12169.     if (NULL!=GetIP())
  12170.         hr= GetIP()->get_Data2(&lpObj);
  12171.     CHECK_HRESULT(hr, CVisioShape, getData2);
  12172.  
  12173.     rWrap= lpObj;
  12174. #ifndef NO_BSTR_HELPER
  12175.     if (NULL!=lpObj)
  12176.         SysFreeString(lpObj);
  12177. #endif  //  NO_BSTR_HELPER
  12178.  
  12179.     return hr;
  12180. }
  12181.  
  12182.  
  12183. VW_INLINE HRESULT CVisioShape::putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12184. {
  12185.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12186.     CHECK_IP(GetIP(), CVisioShape, putData2);
  12187.     if (NULL!=GetIP())
  12188.         hr= GetIP()->put_Data2(param01);
  12189.     CHECK_HRESULT(hr, CVisioShape, putData2);
  12190.     return hr;
  12191. }
  12192.  
  12193.  
  12194. VW_INLINE HRESULT CVisioShape::getData3(BSTR_HELPER_CLASS FAR &rWrap)
  12195. {
  12196.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12197.     BSTR lpObj= NULL;
  12198.  
  12199.     CHECK_IP(GetIP(), CVisioShape, getData3);
  12200.     if (NULL!=GetIP())
  12201.         hr= GetIP()->get_Data3(&lpObj);
  12202.     CHECK_HRESULT(hr, CVisioShape, getData3);
  12203.  
  12204.     rWrap= lpObj;
  12205. #ifndef NO_BSTR_HELPER
  12206.     if (NULL!=lpObj)
  12207.         SysFreeString(lpObj);
  12208. #endif  //  NO_BSTR_HELPER
  12209.  
  12210.     return hr;
  12211. }
  12212.  
  12213.  
  12214. VW_INLINE HRESULT CVisioShape::putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12215. {
  12216.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12217.     CHECK_IP(GetIP(), CVisioShape, putData3);
  12218.     if (NULL!=GetIP())
  12219.         hr= GetIP()->put_Data3(param01);
  12220.     CHECK_HRESULT(hr, CVisioShape, putData3);
  12221.     return hr;
  12222. }
  12223.  
  12224.  
  12225. VW_INLINE HRESULT CVisioShape::getHelp(BSTR_HELPER_CLASS FAR &rWrap)
  12226. {
  12227.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12228.     BSTR lpObj= NULL;
  12229.  
  12230.     CHECK_IP(GetIP(), CVisioShape, getHelp);
  12231.     if (NULL!=GetIP())
  12232.         hr= GetIP()->get_Help(&lpObj);
  12233.     CHECK_HRESULT(hr, CVisioShape, getHelp);
  12234.  
  12235.     rWrap= lpObj;
  12236. #ifndef NO_BSTR_HELPER
  12237.     if (NULL!=lpObj)
  12238.         SysFreeString(lpObj);
  12239. #endif  //  NO_BSTR_HELPER
  12240.  
  12241.     return hr;
  12242. }
  12243.  
  12244.  
  12245. VW_INLINE HRESULT CVisioShape::putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12246. {
  12247.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12248.     CHECK_IP(GetIP(), CVisioShape, putHelp);
  12249.     if (NULL!=GetIP())
  12250.         hr= GetIP()->put_Help(param01);
  12251.     CHECK_HRESULT(hr, CVisioShape, putHelp);
  12252.     return hr;
  12253. }
  12254.  
  12255.  
  12256. VW_INLINE HRESULT CVisioShape::NameID(BSTR_HELPER_CLASS FAR &rWrap)
  12257. {
  12258.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12259.     BSTR lpObj= NULL;
  12260.  
  12261.     CHECK_IP(GetIP(), CVisioShape, NameID);
  12262.     if (NULL!=GetIP())
  12263.         hr= GetIP()->get_NameID(&lpObj);
  12264.     CHECK_HRESULT(hr, CVisioShape, NameID);
  12265.  
  12266.     rWrap= lpObj;
  12267. #ifndef NO_BSTR_HELPER
  12268.     if (NULL!=lpObj)
  12269.         SysFreeString(lpObj);
  12270. #endif  //  NO_BSTR_HELPER
  12271.  
  12272.     return hr;
  12273. }
  12274.  
  12275.  
  12276. VW_INLINE HRESULT CVisioShape::getName(BSTR_HELPER_CLASS FAR &rWrap)
  12277. {
  12278.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12279.     BSTR lpObj= NULL;
  12280.  
  12281.     CHECK_IP(GetIP(), CVisioShape, getName);
  12282.     if (NULL!=GetIP())
  12283.         hr= GetIP()->get_Name(&lpObj);
  12284.     CHECK_HRESULT(hr, CVisioShape, getName);
  12285.  
  12286.     rWrap= lpObj;
  12287. #ifndef NO_BSTR_HELPER
  12288.     if (NULL!=lpObj)
  12289.         SysFreeString(lpObj);
  12290. #endif  //  NO_BSTR_HELPER
  12291.  
  12292.     return hr;
  12293. }
  12294.  
  12295.  
  12296. VW_INLINE HRESULT CVisioShape::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12297. {
  12298.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12299.     CHECK_IP(GetIP(), CVisioShape, putName);
  12300.     if (NULL!=GetIP())
  12301.         hr= GetIP()->put_Name(param01);
  12302.     CHECK_HRESULT(hr, CVisioShape, putName);
  12303.     return hr;
  12304. }
  12305.  
  12306.  
  12307. VW_INLINE HRESULT CVisioShape::getText(BSTR_HELPER_CLASS FAR &rWrap)
  12308. {
  12309.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12310.     BSTR lpObj= NULL;
  12311.  
  12312.     CHECK_IP(GetIP(), CVisioShape, getText);
  12313.     if (NULL!=GetIP())
  12314.         hr= GetIP()->get_Text(&lpObj);
  12315.     CHECK_HRESULT(hr, CVisioShape, getText);
  12316.  
  12317.     rWrap= lpObj;
  12318. #ifndef NO_BSTR_HELPER
  12319.     if (NULL!=lpObj)
  12320.         SysFreeString(lpObj);
  12321. #endif  //  NO_BSTR_HELPER
  12322.  
  12323.     return hr;
  12324. }
  12325.  
  12326.  
  12327. VW_INLINE HRESULT CVisioShape::putText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12328. {
  12329.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12330.     CHECK_IP(GetIP(), CVisioShape, putText);
  12331.     if (NULL!=GetIP())
  12332.         hr= GetIP()->put_Text(param01);
  12333.     CHECK_HRESULT(hr, CVisioShape, putText);
  12334.     return hr;
  12335. }
  12336.  
  12337.  
  12338. VW_INLINE HRESULT CVisioShape::CharCount(long FAR *lpRet)
  12339. {
  12340.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12341.     CHECK_IP(GetIP(), CVisioShape, CharCount);
  12342.     if (NULL!=GetIP())
  12343.         hr= GetIP()->get_CharCount(lpRet);
  12344.     CHECK_HRESULT(hr, CVisioShape, CharCount);
  12345.     return hr;
  12346. }
  12347.  
  12348.  
  12349. VW_INLINE HRESULT CVisioShape::Characters(CVisioCharacters FAR &rWrap)
  12350. {
  12351.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12352.     IVCharacters FAR *lpObj= NULL;
  12353.  
  12354.     CHECK_IP(GetIP(), CVisioShape, Characters);
  12355.     if (NULL!=GetIP())
  12356.         hr= GetIP()->get_Characters(&lpObj);
  12357.     CHECK_HRESULT(hr, CVisioShape, Characters);
  12358.  
  12359.     rWrap= lpObj;
  12360.     if (NULL!=lpObj)
  12361.         lpObj->Release();
  12362.  
  12363.     return hr;
  12364. }
  12365.  
  12366.  
  12367. VW_INLINE HRESULT CVisioShape::Copy()
  12368. {
  12369.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12370.     CHECK_IP(GetIP(), CVisioShape, Copy);
  12371.     if (NULL!=GetIP())
  12372.         hr= GetIP()->Copy();
  12373.     CHECK_HRESULT(hr, CVisioShape, Copy);
  12374.     return hr;
  12375. }
  12376.  
  12377.  
  12378. VW_INLINE HRESULT CVisioShape::Cut()
  12379. {
  12380.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12381.     CHECK_IP(GetIP(), CVisioShape, Cut);
  12382.     if (NULL!=GetIP())
  12383.         hr= GetIP()->Cut();
  12384.     CHECK_HRESULT(hr, CVisioShape, Cut);
  12385.     return hr;
  12386. }
  12387.  
  12388.  
  12389. VW_INLINE HRESULT CVisioShape::Delete()
  12390. {
  12391.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12392.     CHECK_IP(GetIP(), CVisioShape, Delete);
  12393.     if (NULL!=GetIP())
  12394.         hr= GetIP()->Delete();
  12395.     CHECK_HRESULT(hr, CVisioShape, Delete);
  12396.     return hr;
  12397. }
  12398.  
  12399.  
  12400. VW_INLINE HRESULT CVisioShape::Duplicate()
  12401. {
  12402.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12403.     CHECK_IP(GetIP(), CVisioShape, Duplicate);
  12404.     if (NULL!=GetIP())
  12405.         hr= GetIP()->Duplicate();
  12406.     CHECK_HRESULT(hr, CVisioShape, Duplicate);
  12407.     return hr;
  12408. }
  12409.  
  12410.  
  12411. VW_INLINE HRESULT CVisioShape::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos, CVisioShape FAR &rWrap)
  12412. {
  12413.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12414.     IVShape FAR *lpObj= NULL;
  12415.  
  12416.     CHECK_IP(GetIP(), CVisioShape, Drop);
  12417.     if (NULL!=GetIP())
  12418.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpObj);
  12419.     CHECK_HRESULT(hr, CVisioShape, Drop);
  12420.  
  12421.     rWrap= lpObj;
  12422.     if (NULL!=lpObj)
  12423.         lpObj->Release();
  12424.  
  12425.     return hr;
  12426. }
  12427.  
  12428.  
  12429. VW_INLINE HRESULT CVisioShape::getOneD(short FAR *lpRet)
  12430. {
  12431.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12432.     CHECK_IP(GetIP(), CVisioShape, getOneD);
  12433.     if (NULL!=GetIP())
  12434.         hr= GetIP()->get_OneD(lpRet);
  12435.     CHECK_HRESULT(hr, CVisioShape, getOneD);
  12436.     return hr;
  12437. }
  12438.  
  12439.  
  12440. VW_INLINE HRESULT CVisioShape::putOneD(VW_CONST short param01)
  12441. {
  12442.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12443.     CHECK_IP(GetIP(), CVisioShape, putOneD);
  12444.     if (NULL!=GetIP())
  12445.         hr= GetIP()->put_OneD(param01);
  12446.     CHECK_HRESULT(hr, CVisioShape, putOneD);
  12447.     return hr;
  12448. }
  12449.  
  12450.  
  12451. VW_INLINE HRESULT CVisioShape::GeometryCount(short FAR *lpRet)
  12452. {
  12453.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12454.     CHECK_IP(GetIP(), CVisioShape, GeometryCount);
  12455.     if (NULL!=GetIP())
  12456.         hr= GetIP()->get_GeometryCount(lpRet);
  12457.     CHECK_HRESULT(hr, CVisioShape, GeometryCount);
  12458.     return hr;
  12459. }
  12460.  
  12461.  
  12462. VW_INLINE HRESULT CVisioShape::RowCount(short Section, short FAR *lpRet)
  12463. {
  12464.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12465.     CHECK_IP(GetIP(), CVisioShape, RowCount);
  12466.     if (NULL!=GetIP())
  12467.         hr= GetIP()->get_RowCount(Section, lpRet);
  12468.     CHECK_HRESULT(hr, CVisioShape, RowCount);
  12469.     return hr;
  12470. }
  12471.  
  12472.  
  12473. VW_INLINE HRESULT CVisioShape::AddSection(short Section, short FAR *lpRet)
  12474. {
  12475.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12476.     CHECK_IP(GetIP(), CVisioShape, AddSection);
  12477.     if (NULL!=GetIP())
  12478.         hr= GetIP()->AddSection(Section, lpRet);
  12479.     CHECK_HRESULT(hr, CVisioShape, AddSection);
  12480.     return hr;
  12481. }
  12482.  
  12483.  
  12484. VW_INLINE HRESULT CVisioShape::DeleteSection(short Section)
  12485. {
  12486.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12487.     CHECK_IP(GetIP(), CVisioShape, DeleteSection);
  12488.     if (NULL!=GetIP())
  12489.         hr= GetIP()->DeleteSection(Section);
  12490.     CHECK_HRESULT(hr, CVisioShape, DeleteSection);
  12491.     return hr;
  12492. }
  12493.  
  12494.  
  12495. VW_INLINE HRESULT CVisioShape::AddRow(short Section, short Row, short RowTag, short FAR *lpRet)
  12496. {
  12497.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12498.     CHECK_IP(GetIP(), CVisioShape, AddRow);
  12499.     if (NULL!=GetIP())
  12500.         hr= GetIP()->AddRow(Section, Row, RowTag, lpRet);
  12501.     CHECK_HRESULT(hr, CVisioShape, AddRow);
  12502.     return hr;
  12503. }
  12504.  
  12505.  
  12506. VW_INLINE HRESULT CVisioShape::DeleteRow(short Section, short Row)
  12507. {
  12508.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12509.     CHECK_IP(GetIP(), CVisioShape, DeleteRow);
  12510.     if (NULL!=GetIP())
  12511.         hr= GetIP()->DeleteRow(Section, Row);
  12512.     CHECK_HRESULT(hr, CVisioShape, DeleteRow);
  12513.     return hr;
  12514. }
  12515.  
  12516.  
  12517. VW_INLINE HRESULT CVisioShape::RowsCellCount(short Section, short Row, short FAR *lpRet)
  12518. {
  12519.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12520.     CHECK_IP(GetIP(), CVisioShape, RowsCellCount);
  12521.     if (NULL!=GetIP())
  12522.         hr= GetIP()->get_RowsCellCount(Section, Row, lpRet);
  12523.     CHECK_HRESULT(hr, CVisioShape, RowsCellCount);
  12524.     return hr;
  12525. }
  12526.  
  12527.  
  12528. VW_INLINE HRESULT CVisioShape::getRowType(short Section, short Row, short FAR *lpRet)
  12529. {
  12530.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12531.     CHECK_IP(GetIP(), CVisioShape, getRowType);
  12532.     if (NULL!=GetIP())
  12533.         hr= GetIP()->get_RowType(Section, Row, lpRet);
  12534.     CHECK_HRESULT(hr, CVisioShape, getRowType);
  12535.     return hr;
  12536. }
  12537.  
  12538.  
  12539. VW_INLINE HRESULT CVisioShape::putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03)
  12540. {
  12541.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12542.     CHECK_IP(GetIP(), CVisioShape, putRowType);
  12543.     if (NULL!=GetIP())
  12544.         hr= GetIP()->put_RowType(Section, Row, param03);
  12545.     CHECK_HRESULT(hr, CVisioShape, putRowType);
  12546.     return hr;
  12547. }
  12548.  
  12549.  
  12550. VW_INLINE HRESULT CVisioShape::SetCenter(double xPos, double yPos)
  12551. {
  12552.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12553.     CHECK_IP(GetIP(), CVisioShape, SetCenter);
  12554.     if (NULL!=GetIP())
  12555.         hr= GetIP()->SetCenter(xPos, yPos);
  12556.     CHECK_HRESULT(hr, CVisioShape, SetCenter);
  12557.     return hr;
  12558. }
  12559.  
  12560.  
  12561. VW_INLINE HRESULT CVisioShape::SetBegin(double xPos, double yPos)
  12562. {
  12563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12564.     CHECK_IP(GetIP(), CVisioShape, SetBegin);
  12565.     if (NULL!=GetIP())
  12566.         hr= GetIP()->SetBegin(xPos, yPos);
  12567.     CHECK_HRESULT(hr, CVisioShape, SetBegin);
  12568.     return hr;
  12569. }
  12570.  
  12571.  
  12572. VW_INLINE HRESULT CVisioShape::SetEnd(double xPos, double yPos)
  12573. {
  12574.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12575.     CHECK_IP(GetIP(), CVisioShape, SetEnd);
  12576.     if (NULL!=GetIP())
  12577.         hr= GetIP()->SetEnd(xPos, yPos);
  12578.     CHECK_HRESULT(hr, CVisioShape, SetEnd);
  12579.     return hr;
  12580. }
  12581.  
  12582.  
  12583. VW_INLINE HRESULT CVisioShape::Connects(CVisioConnects FAR &rWrap)
  12584. {
  12585.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12586.     IVConnects FAR *lpObj= NULL;
  12587.  
  12588.     CHECK_IP(GetIP(), CVisioShape, Connects);
  12589.     if (NULL!=GetIP())
  12590.         hr= GetIP()->get_Connects(&lpObj);
  12591.     CHECK_HRESULT(hr, CVisioShape, Connects);
  12592.  
  12593.     rWrap= lpObj;
  12594.     if (NULL!=lpObj)
  12595.         lpObj->Release();
  12596.  
  12597.     return hr;
  12598. }
  12599.  
  12600.  
  12601. VW_INLINE HRESULT CVisioShape::Index(short FAR *lpRet)
  12602. {
  12603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12604.     CHECK_IP(GetIP(), CVisioShape, Index);
  12605.     if (NULL!=GetIP())
  12606.         hr= GetIP()->get_Index(lpRet);
  12607.     CHECK_HRESULT(hr, CVisioShape, Index);
  12608.     return hr;
  12609. }
  12610.  
  12611.  
  12612. VW_INLINE HRESULT CVisioShape::getStyle(BSTR_HELPER_CLASS FAR &rWrap)
  12613. {
  12614.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12615.     BSTR lpObj= NULL;
  12616.  
  12617.     CHECK_IP(GetIP(), CVisioShape, getStyle);
  12618.     if (NULL!=GetIP())
  12619.         hr= GetIP()->get_Style(&lpObj);
  12620.     CHECK_HRESULT(hr, CVisioShape, getStyle);
  12621.  
  12622.     rWrap= lpObj;
  12623. #ifndef NO_BSTR_HELPER
  12624.     if (NULL!=lpObj)
  12625.         SysFreeString(lpObj);
  12626. #endif  //  NO_BSTR_HELPER
  12627.  
  12628.     return hr;
  12629. }
  12630.  
  12631.  
  12632. VW_INLINE HRESULT CVisioShape::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12633. {
  12634.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12635.     CHECK_IP(GetIP(), CVisioShape, putStyle);
  12636.     if (NULL!=GetIP())
  12637.         hr= GetIP()->put_Style(param01);
  12638.     CHECK_HRESULT(hr, CVisioShape, putStyle);
  12639.     return hr;
  12640. }
  12641.  
  12642.  
  12643. VW_INLINE HRESULT CVisioShape::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12644. {
  12645.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12646.     CHECK_IP(GetIP(), CVisioShape, StyleKeepFmt);
  12647.     if (NULL!=GetIP())
  12648.         hr= GetIP()->put_StyleKeepFmt(param01);
  12649.     CHECK_HRESULT(hr, CVisioShape, StyleKeepFmt);
  12650.     return hr;
  12651. }
  12652.  
  12653.  
  12654. VW_INLINE HRESULT CVisioShape::getLineStyle(BSTR_HELPER_CLASS FAR &rWrap)
  12655. {
  12656.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12657.     BSTR lpObj= NULL;
  12658.  
  12659.     CHECK_IP(GetIP(), CVisioShape, getLineStyle);
  12660.     if (NULL!=GetIP())
  12661.         hr= GetIP()->get_LineStyle(&lpObj);
  12662.     CHECK_HRESULT(hr, CVisioShape, getLineStyle);
  12663.  
  12664.     rWrap= lpObj;
  12665. #ifndef NO_BSTR_HELPER
  12666.     if (NULL!=lpObj)
  12667.         SysFreeString(lpObj);
  12668. #endif  //  NO_BSTR_HELPER
  12669.  
  12670.     return hr;
  12671. }
  12672.  
  12673.  
  12674. VW_INLINE HRESULT CVisioShape::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12675. {
  12676.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12677.     CHECK_IP(GetIP(), CVisioShape, putLineStyle);
  12678.     if (NULL!=GetIP())
  12679.         hr= GetIP()->put_LineStyle(param01);
  12680.     CHECK_HRESULT(hr, CVisioShape, putLineStyle);
  12681.     return hr;
  12682. }
  12683.  
  12684.  
  12685. VW_INLINE HRESULT CVisioShape::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12686. {
  12687.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12688.     CHECK_IP(GetIP(), CVisioShape, LineStyleKeepFmt);
  12689.     if (NULL!=GetIP())
  12690.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  12691.     CHECK_HRESULT(hr, CVisioShape, LineStyleKeepFmt);
  12692.     return hr;
  12693. }
  12694.  
  12695.  
  12696. VW_INLINE HRESULT CVisioShape::getFillStyle(BSTR_HELPER_CLASS FAR &rWrap)
  12697. {
  12698.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12699.     BSTR lpObj= NULL;
  12700.  
  12701.     CHECK_IP(GetIP(), CVisioShape, getFillStyle);
  12702.     if (NULL!=GetIP())
  12703.         hr= GetIP()->get_FillStyle(&lpObj);
  12704.     CHECK_HRESULT(hr, CVisioShape, getFillStyle);
  12705.  
  12706.     rWrap= lpObj;
  12707. #ifndef NO_BSTR_HELPER
  12708.     if (NULL!=lpObj)
  12709.         SysFreeString(lpObj);
  12710. #endif  //  NO_BSTR_HELPER
  12711.  
  12712.     return hr;
  12713. }
  12714.  
  12715.  
  12716. VW_INLINE HRESULT CVisioShape::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12717. {
  12718.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12719.     CHECK_IP(GetIP(), CVisioShape, putFillStyle);
  12720.     if (NULL!=GetIP())
  12721.         hr= GetIP()->put_FillStyle(param01);
  12722.     CHECK_HRESULT(hr, CVisioShape, putFillStyle);
  12723.     return hr;
  12724. }
  12725.  
  12726.  
  12727. VW_INLINE HRESULT CVisioShape::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12728. {
  12729.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12730.     CHECK_IP(GetIP(), CVisioShape, FillStyleKeepFmt);
  12731.     if (NULL!=GetIP())
  12732.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  12733.     CHECK_HRESULT(hr, CVisioShape, FillStyleKeepFmt);
  12734.     return hr;
  12735. }
  12736.  
  12737.  
  12738. VW_INLINE HRESULT CVisioShape::getTextStyle(BSTR_HELPER_CLASS FAR &rWrap)
  12739. {
  12740.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12741.     BSTR lpObj= NULL;
  12742.  
  12743.     CHECK_IP(GetIP(), CVisioShape, getTextStyle);
  12744.     if (NULL!=GetIP())
  12745.         hr= GetIP()->get_TextStyle(&lpObj);
  12746.     CHECK_HRESULT(hr, CVisioShape, getTextStyle);
  12747.  
  12748.     rWrap= lpObj;
  12749. #ifndef NO_BSTR_HELPER
  12750.     if (NULL!=lpObj)
  12751.         SysFreeString(lpObj);
  12752. #endif  //  NO_BSTR_HELPER
  12753.  
  12754.     return hr;
  12755. }
  12756.  
  12757.  
  12758. VW_INLINE HRESULT CVisioShape::putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12759. {
  12760.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12761.     CHECK_IP(GetIP(), CVisioShape, putTextStyle);
  12762.     if (NULL!=GetIP())
  12763.         hr= GetIP()->put_TextStyle(param01);
  12764.     CHECK_HRESULT(hr, CVisioShape, putTextStyle);
  12765.     return hr;
  12766. }
  12767.  
  12768.  
  12769. VW_INLINE HRESULT CVisioShape::TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12770. {
  12771.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12772.     CHECK_IP(GetIP(), CVisioShape, TextStyleKeepFmt);
  12773.     if (NULL!=GetIP())
  12774.         hr= GetIP()->put_TextStyleKeepFmt(param01);
  12775.     CHECK_HRESULT(hr, CVisioShape, TextStyleKeepFmt);
  12776.     return hr;
  12777. }
  12778.  
  12779.  
  12780. VW_INLINE HRESULT CVisioShape::Export(BSTR_HELPER_CLASS FAR &FileName)
  12781. {
  12782.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12783.     CHECK_IP(GetIP(), CVisioShape, Export);
  12784.     if (NULL!=GetIP())
  12785.         hr= GetIP()->Export(FileName);
  12786.     CHECK_HRESULT(hr, CVisioShape, Export);
  12787.     return hr;
  12788. }
  12789.  
  12790.  
  12791. VW_INLINE HRESULT CVisioShape::AreaIU(double FAR *lpRet)
  12792. {
  12793.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12794.     CHECK_IP(GetIP(), CVisioShape, AreaIU);
  12795.     if (NULL!=GetIP())
  12796.         hr= GetIP()->get_AreaIU(lpRet);
  12797.     CHECK_HRESULT(hr, CVisioShape, AreaIU);
  12798.     return hr;
  12799. }
  12800.  
  12801.  
  12802. VW_INLINE HRESULT CVisioShape::LengthIU(double FAR *lpRet)
  12803. {
  12804.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12805.     CHECK_IP(GetIP(), CVisioShape, LengthIU);
  12806.     if (NULL!=GetIP())
  12807.         hr= GetIP()->get_LengthIU(lpRet);
  12808.     CHECK_HRESULT(hr, CVisioShape, LengthIU);
  12809.     return hr;
  12810. }
  12811.  
  12812.  
  12813. VW_INLINE HRESULT CVisioShape::GeomExIf(short fFill, double LineRes, IUnknown FAR *FAR *lpRet)
  12814. {
  12815.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12816.     CHECK_IP(GetIP(), CVisioShape, GeomExIf);
  12817.     if (NULL!=GetIP())
  12818.         hr= GetIP()->get_GeomExIf(fFill, LineRes, lpRet);
  12819.     CHECK_HRESULT(hr, CVisioShape, GeomExIf);
  12820.     return hr;
  12821. }
  12822.  
  12823.  
  12824. VW_INLINE HRESULT CVisioShape::UniqueID(short fUniqueID, BSTR_HELPER_CLASS FAR &rWrap)
  12825. {
  12826.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12827.     BSTR lpObj= NULL;
  12828.  
  12829.     CHECK_IP(GetIP(), CVisioShape, UniqueID);
  12830.     if (NULL!=GetIP())
  12831.         hr= GetIP()->get_UniqueID(fUniqueID, &lpObj);
  12832.     CHECK_HRESULT(hr, CVisioShape, UniqueID);
  12833.  
  12834.     rWrap= lpObj;
  12835. #ifndef NO_BSTR_HELPER
  12836.     if (NULL!=lpObj)
  12837.         SysFreeString(lpObj);
  12838. #endif  //  NO_BSTR_HELPER
  12839.  
  12840.     return hr;
  12841. }
  12842.  
  12843.  
  12844. VW_INLINE HRESULT CVisioShape::ContainingPage(CVisioPage FAR &rWrap)
  12845. {
  12846.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12847.     IVPage FAR *lpObj= NULL;
  12848.  
  12849.     CHECK_IP(GetIP(), CVisioShape, ContainingPage);
  12850.     if (NULL!=GetIP())
  12851.         hr= GetIP()->get_ContainingPage(&lpObj);
  12852.     CHECK_HRESULT(hr, CVisioShape, ContainingPage);
  12853.  
  12854.     rWrap= lpObj;
  12855.     if (NULL!=lpObj)
  12856.         lpObj->Release();
  12857.  
  12858.     return hr;
  12859. }
  12860.  
  12861.  
  12862. VW_INLINE HRESULT CVisioShape::ContainingMaster(CVisioMaster FAR &rWrap)
  12863. {
  12864.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12865.     IVMaster FAR *lpObj= NULL;
  12866.  
  12867.     CHECK_IP(GetIP(), CVisioShape, ContainingMaster);
  12868.     if (NULL!=GetIP())
  12869.         hr= GetIP()->get_ContainingMaster(&lpObj);
  12870.     CHECK_HRESULT(hr, CVisioShape, ContainingMaster);
  12871.  
  12872.     rWrap= lpObj;
  12873.     if (NULL!=lpObj)
  12874.         lpObj->Release();
  12875.  
  12876.     return hr;
  12877. }
  12878.  
  12879.  
  12880. VW_INLINE HRESULT CVisioShape::ContainingShape(CVisioShape FAR &rWrap)
  12881. {
  12882.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12883.     IVShape FAR *lpObj= NULL;
  12884.  
  12885.     CHECK_IP(GetIP(), CVisioShape, ContainingShape);
  12886.     if (NULL!=GetIP())
  12887.         hr= GetIP()->get_ContainingShape(&lpObj);
  12888.     CHECK_HRESULT(hr, CVisioShape, ContainingShape);
  12889.  
  12890.     rWrap= lpObj;
  12891.     if (NULL!=lpObj)
  12892.         lpObj->Release();
  12893.  
  12894.     return hr;
  12895. }
  12896.  
  12897.  
  12898. VW_INLINE HRESULT CVisioShape::SectionExists(short Section, short fLocalExists, short FAR *lpRet)
  12899. {
  12900.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12901.     CHECK_IP(GetIP(), CVisioShape, SectionExists);
  12902.     if (NULL!=GetIP())
  12903.         hr= GetIP()->get_SectionExists(Section, fLocalExists, lpRet);
  12904.     CHECK_HRESULT(hr, CVisioShape, SectionExists);
  12905.     return hr;
  12906. }
  12907.  
  12908.  
  12909. VW_INLINE HRESULT CVisioShape::RowExists(short Section, short Row, short fLocalExists, short FAR *lpRet)
  12910. {
  12911.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12912.     CHECK_IP(GetIP(), CVisioShape, RowExists);
  12913.     if (NULL!=GetIP())
  12914.         hr= GetIP()->get_RowExists(Section, Row, fLocalExists, lpRet);
  12915.     CHECK_HRESULT(hr, CVisioShape, RowExists);
  12916.     return hr;
  12917. }
  12918.  
  12919.  
  12920. VW_INLINE HRESULT CVisioShape::CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists, short FAR *lpRet)
  12921. {
  12922.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12923.     CHECK_IP(GetIP(), CVisioShape, CellExists);
  12924.     if (NULL!=GetIP())
  12925.         hr= GetIP()->get_CellExists(CellName, fLocalExists, lpRet);
  12926.     CHECK_HRESULT(hr, CVisioShape, CellExists);
  12927.     return hr;
  12928. }
  12929.  
  12930.  
  12931. VW_INLINE HRESULT CVisioShape::CellsSRCExists(short Section, short Row, short Column, short fLocalExists, short FAR *lpRet)
  12932. {
  12933.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12934.     CHECK_IP(GetIP(), CVisioShape, CellsSRCExists);
  12935.     if (NULL!=GetIP())
  12936.         hr= GetIP()->get_CellsSRCExists(Section, Row, Column, fLocalExists, lpRet);
  12937.     CHECK_HRESULT(hr, CVisioShape, CellsSRCExists);
  12938.     return hr;
  12939. }
  12940.  
  12941.  
  12942. VW_INLINE HRESULT CVisioShape::LayerCount(short FAR *lpRet)
  12943. {
  12944.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12945.     CHECK_IP(GetIP(), CVisioShape, LayerCount);
  12946.     if (NULL!=GetIP())
  12947.         hr= GetIP()->get_LayerCount(lpRet);
  12948.     CHECK_HRESULT(hr, CVisioShape, LayerCount);
  12949.     return hr;
  12950. }
  12951.  
  12952.  
  12953. VW_INLINE HRESULT CVisioShape::Layer(short Index, CVisioLayer FAR &rWrap)
  12954. {
  12955.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12956.     IVLayer FAR *lpObj= NULL;
  12957.  
  12958.     CHECK_IP(GetIP(), CVisioShape, Layer);
  12959.     if (NULL!=GetIP())
  12960.         hr= GetIP()->get_Layer(Index, &lpObj);
  12961.     CHECK_HRESULT(hr, CVisioShape, Layer);
  12962.  
  12963.     rWrap= lpObj;
  12964.     if (NULL!=lpObj)
  12965.         lpObj->Release();
  12966.  
  12967.     return hr;
  12968. }
  12969.  
  12970.  
  12971. VW_INLINE HRESULT CVisioShape::AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag, short FAR *lpRet)
  12972. {
  12973.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12974.     CHECK_IP(GetIP(), CVisioShape, AddNamedRow);
  12975.     if (NULL!=GetIP())
  12976.         hr= GetIP()->AddNamedRow(Section, RowName, RowTag, lpRet);
  12977.     CHECK_HRESULT(hr, CVisioShape, AddNamedRow);
  12978.     return hr;
  12979. }
  12980.  
  12981.  
  12982. VW_INLINE HRESULT CVisioShape::AddRows(short Section, short Row, short RowTag, short RowCount, short FAR *lpRet)
  12983. {
  12984.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12985.     CHECK_IP(GetIP(), CVisioShape, AddRows);
  12986.     if (NULL!=GetIP())
  12987.         hr= GetIP()->AddRows(Section, Row, RowTag, RowCount, lpRet);
  12988.     CHECK_HRESULT(hr, CVisioShape, AddRows);
  12989.     return hr;
  12990. }
  12991.  
  12992.  
  12993. VW_INLINE HRESULT CVisioShape::EventList(CVisioEventList FAR &rWrap)
  12994. {
  12995.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12996.     IVEventList FAR *lpObj= NULL;
  12997.  
  12998.     CHECK_IP(GetIP(), CVisioShape, EventList);
  12999.     if (NULL!=GetIP())
  13000.         hr= GetIP()->get_EventList(&lpObj);
  13001.     CHECK_HRESULT(hr, CVisioShape, EventList);
  13002.  
  13003.     rWrap= lpObj;
  13004.     if (NULL!=lpObj)
  13005.         lpObj->Release();
  13006.  
  13007.     return hr;
  13008. }
  13009.  
  13010.  
  13011. VW_INLINE HRESULT CVisioShape::PersistsEvents(short FAR *lpRet)
  13012. {
  13013.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13014.     CHECK_IP(GetIP(), CVisioShape, PersistsEvents);
  13015.     if (NULL!=GetIP())
  13016.         hr= GetIP()->get_PersistsEvents(lpRet);
  13017.     CHECK_HRESULT(hr, CVisioShape, PersistsEvents);
  13018.     return hr;
  13019. }
  13020.  
  13021.  
  13022. VW_INLINE HRESULT CVisioShape::DrawLine(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  13023. {
  13024.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13025.     IVShape FAR *lpObj= NULL;
  13026.  
  13027.     CHECK_IP(GetIP(), CVisioShape, DrawLine);
  13028.     if (NULL!=GetIP())
  13029.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpObj);
  13030.     CHECK_HRESULT(hr, CVisioShape, DrawLine);
  13031.  
  13032.     rWrap= lpObj;
  13033.     if (NULL!=lpObj)
  13034.         lpObj->Release();
  13035.  
  13036.     return hr;
  13037. }
  13038.  
  13039.  
  13040. VW_INLINE HRESULT CVisioShape::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  13041. {
  13042.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13043.     IVShape FAR *lpObj= NULL;
  13044.  
  13045.     CHECK_IP(GetIP(), CVisioShape, DrawRectangle);
  13046.     if (NULL!=GetIP())
  13047.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpObj);
  13048.     CHECK_HRESULT(hr, CVisioShape, DrawRectangle);
  13049.  
  13050.     rWrap= lpObj;
  13051.     if (NULL!=lpObj)
  13052.         lpObj->Release();
  13053.  
  13054.     return hr;
  13055. }
  13056.  
  13057.  
  13058. VW_INLINE HRESULT CVisioShape::DrawOval(double xLeft, double yTop, double xRight, double yBottom, CVisioShape FAR &rWrap)
  13059. {
  13060.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13061.     IVShape FAR *lpObj= NULL;
  13062.  
  13063.     CHECK_IP(GetIP(), CVisioShape, DrawOval);
  13064.     if (NULL!=GetIP())
  13065.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpObj);
  13066.     CHECK_HRESULT(hr, CVisioShape, DrawOval);
  13067.  
  13068.     rWrap= lpObj;
  13069.     if (NULL!=lpObj)
  13070.         lpObj->Release();
  13071.  
  13072.     return hr;
  13073. }
  13074.  
  13075.  
  13076. VW_INLINE HRESULT CVisioShape::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags, CVisioShape FAR &rWrap)
  13077. {
  13078.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13079.     IVShape FAR *lpObj= NULL;
  13080.  
  13081.     CHECK_IP(GetIP(), CVisioShape, DrawSpline);
  13082.     if (NULL!=GetIP())
  13083.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpObj);
  13084.     CHECK_HRESULT(hr, CVisioShape, DrawSpline);
  13085.  
  13086.     rWrap= lpObj;
  13087.     if (NULL!=lpObj)
  13088.         lpObj->Release();
  13089.  
  13090.     return hr;
  13091. }
  13092.  
  13093.  
  13094. VW_INLINE HRESULT CVisioShape::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags, CVisioShape FAR &rWrap)
  13095. {
  13096.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13097.     IVShape FAR *lpObj= NULL;
  13098.  
  13099.     CHECK_IP(GetIP(), CVisioShape, DrawBezier);
  13100.     if (NULL!=GetIP())
  13101.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpObj);
  13102.     CHECK_HRESULT(hr, CVisioShape, DrawBezier);
  13103.  
  13104.     rWrap= lpObj;
  13105.     if (NULL!=lpObj)
  13106.         lpObj->Release();
  13107.  
  13108.     return hr;
  13109. }
  13110.  
  13111.  
  13112. VW_INLINE HRESULT CVisioShape::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags, CVisioShape FAR &rWrap)
  13113. {
  13114.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13115.     IVShape FAR *lpObj= NULL;
  13116.  
  13117.     CHECK_IP(GetIP(), CVisioShape, DrawPolyline);
  13118.     if (NULL!=GetIP())
  13119.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpObj);
  13120.     CHECK_HRESULT(hr, CVisioShape, DrawPolyline);
  13121.  
  13122.     rWrap= lpObj;
  13123.     if (NULL!=lpObj)
  13124.         lpObj->Release();
  13125.  
  13126.     return hr;
  13127. }
  13128.  
  13129.  
  13130. VW_INLINE HRESULT CVisioShape::FitCurve(double Tolerance, short Flags)
  13131. {
  13132.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13133.     CHECK_IP(GetIP(), CVisioShape, FitCurve);
  13134.     if (NULL!=GetIP())
  13135.         hr= GetIP()->FitCurve(Tolerance, Flags);
  13136.     CHECK_HRESULT(hr, CVisioShape, FitCurve);
  13137.     return hr;
  13138. }
  13139.  
  13140.  
  13141. VW_INLINE HRESULT CVisioShape::Import(BSTR_HELPER_CLASS FAR &FileName, CVisioShape FAR &rWrap)
  13142. {
  13143.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13144.     IVShape FAR *lpObj= NULL;
  13145.  
  13146.     CHECK_IP(GetIP(), CVisioShape, Import);
  13147.     if (NULL!=GetIP())
  13148.         hr= GetIP()->Import(FileName, &lpObj);
  13149.     CHECK_HRESULT(hr, CVisioShape, Import);
  13150.  
  13151.     rWrap= lpObj;
  13152.     if (NULL!=lpObj)
  13153.         lpObj->Release();
  13154.  
  13155.     return hr;
  13156. }
  13157.  
  13158.  
  13159. VW_INLINE HRESULT CVisioShape::CenterDrawing()
  13160. {
  13161.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13162.     CHECK_IP(GetIP(), CVisioShape, CenterDrawing);
  13163.     if (NULL!=GetIP())
  13164.         hr= GetIP()->CenterDrawing();
  13165.     CHECK_HRESULT(hr, CVisioShape, CenterDrawing);
  13166.     return hr;
  13167. }
  13168.  
  13169.  
  13170. VW_INLINE HRESULT CVisioShape::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags, CVisioShape FAR &rWrap)
  13171. {
  13172.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13173.     IVShape FAR *lpObj= NULL;
  13174.  
  13175.     CHECK_IP(GetIP(), CVisioShape, InsertFromFile);
  13176.     if (NULL!=GetIP())
  13177.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpObj);
  13178.     CHECK_HRESULT(hr, CVisioShape, InsertFromFile);
  13179.  
  13180.     rWrap= lpObj;
  13181.     if (NULL!=lpObj)
  13182.         lpObj->Release();
  13183.  
  13184.     return hr;
  13185. }
  13186.  
  13187.  
  13188. VW_INLINE HRESULT CVisioShape::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags, CVisioShape FAR &rWrap)
  13189. {
  13190.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13191.     IVShape FAR *lpObj= NULL;
  13192.  
  13193.     CHECK_IP(GetIP(), CVisioShape, InsertObject);
  13194.     if (NULL!=GetIP())
  13195.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpObj);
  13196.     CHECK_HRESULT(hr, CVisioShape, InsertObject);
  13197.  
  13198.     rWrap= lpObj;
  13199.     if (NULL!=lpObj)
  13200.         lpObj->Release();
  13201.  
  13202.     return hr;
  13203. }
  13204.  
  13205.  
  13206. VW_INLINE HRESULT CVisioShape::ClassID(BSTR_HELPER_CLASS FAR &rWrap)
  13207. {
  13208.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13209.     BSTR lpObj= NULL;
  13210.  
  13211.     CHECK_IP(GetIP(), CVisioShape, ClassID);
  13212.     if (NULL!=GetIP())
  13213.         hr= GetIP()->get_ClassID(&lpObj);
  13214.     CHECK_HRESULT(hr, CVisioShape, ClassID);
  13215.  
  13216.     rWrap= lpObj;
  13217. #ifndef NO_BSTR_HELPER
  13218.     if (NULL!=lpObj)
  13219.         SysFreeString(lpObj);
  13220. #endif  //  NO_BSTR_HELPER
  13221.  
  13222.     return hr;
  13223. }
  13224.  
  13225.  
  13226. VW_INLINE HRESULT CVisioShape::ForeignType(short FAR *lpRet)
  13227. {
  13228.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13229.     CHECK_IP(GetIP(), CVisioShape, ForeignType);
  13230.     if (NULL!=GetIP())
  13231.         hr= GetIP()->get_ForeignType(lpRet);
  13232.     CHECK_HRESULT(hr, CVisioShape, ForeignType);
  13233.     return hr;
  13234. }
  13235.  
  13236.  
  13237. VW_INLINE HRESULT CVisioShape::Object(IDispatch FAR *FAR *lpRet)
  13238. {
  13239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13240.     CHECK_IP(GetIP(), CVisioShape, Object);
  13241.     if (NULL!=GetIP())
  13242.         hr= GetIP()->get_Object(lpRet);
  13243.     CHECK_HRESULT(hr, CVisioShape, Object);
  13244.     return hr;
  13245. }
  13246.  
  13247.  
  13248. VW_INLINE HRESULT CVisioShape::OpenDrawWindow(CVisioWindow FAR &rWrap)
  13249. {
  13250.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13251.     IVWindow FAR *lpObj= NULL;
  13252.  
  13253.     CHECK_IP(GetIP(), CVisioShape, OpenDrawWindow);
  13254.     if (NULL!=GetIP())
  13255.         hr= GetIP()->OpenDrawWindow(&lpObj);
  13256.     CHECK_HRESULT(hr, CVisioShape, OpenDrawWindow);
  13257.  
  13258.     rWrap= lpObj;
  13259.     if (NULL!=lpObj)
  13260.         lpObj->Release();
  13261.  
  13262.     return hr;
  13263. }
  13264.  
  13265.  
  13266. VW_INLINE HRESULT CVisioShape::OpenSheetWindow(CVisioWindow FAR &rWrap)
  13267. {
  13268.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13269.     IVWindow FAR *lpObj= NULL;
  13270.  
  13271.     CHECK_IP(GetIP(), CVisioShape, OpenSheetWindow);
  13272.     if (NULL!=GetIP())
  13273.         hr= GetIP()->OpenSheetWindow(&lpObj);
  13274.     CHECK_HRESULT(hr, CVisioShape, OpenSheetWindow);
  13275.  
  13276.     rWrap= lpObj;
  13277.     if (NULL!=lpObj)
  13278.         lpObj->Release();
  13279.  
  13280.     return hr;
  13281. }
  13282.  
  13283.  
  13284. VW_INLINE HRESULT CVisioShape::ID(short FAR *lpRet)
  13285. {
  13286.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13287.     CHECK_IP(GetIP(), CVisioShape, ID);
  13288.     if (NULL!=GetIP())
  13289.         hr= GetIP()->get_ID(lpRet);
  13290.     CHECK_HRESULT(hr, CVisioShape, ID);
  13291.     return hr;
  13292. }
  13293.  
  13294.  
  13295. VW_INLINE HRESULT CVisioShape::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet)
  13296. {
  13297.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13298.     CHECK_IP(GetIP(), CVisioShape, DropMany);
  13299.     if (NULL!=GetIP())
  13300.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, lpRet);
  13301.     CHECK_HRESULT(hr, CVisioShape, DropMany);
  13302.     return hr;
  13303. }
  13304.  
  13305.  
  13306. VW_INLINE HRESULT CVisioShape::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  13307. {
  13308.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13309.     CHECK_IP(GetIP(), CVisioShape, GetFormulas);
  13310.     if (NULL!=GetIP())
  13311.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  13312.     CHECK_HRESULT(hr, CVisioShape, GetFormulas);
  13313.     return hr;
  13314. }
  13315.  
  13316.  
  13317. VW_INLINE HRESULT CVisioShape::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  13318. {
  13319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13320.     CHECK_IP(GetIP(), CVisioShape, GetResults);
  13321.     if (NULL!=GetIP())
  13322.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  13323.     CHECK_HRESULT(hr, CVisioShape, GetResults);
  13324.     return hr;
  13325. }
  13326.  
  13327.  
  13328. VW_INLINE HRESULT CVisioShape::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
  13329. {
  13330.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13331.     CHECK_IP(GetIP(), CVisioShape, SetFormulas);
  13332.     if (NULL!=GetIP())
  13333.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, lpRet);
  13334.     CHECK_HRESULT(hr, CVisioShape, SetFormulas);
  13335.     return hr;
  13336. }
  13337.  
  13338.  
  13339. VW_INLINE HRESULT CVisioShape::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
  13340. {
  13341.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13342.     CHECK_IP(GetIP(), CVisioShape, SetResults);
  13343.     if (NULL!=GetIP())
  13344.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, lpRet);
  13345.     CHECK_HRESULT(hr, CVisioShape, SetResults);
  13346.     return hr;
  13347. }
  13348.  
  13349.  
  13350. VW_INLINE HRESULT CVisioShape::FromConnects(CVisioConnects FAR &rWrap)
  13351. {
  13352.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13353.     IVConnects FAR *lpObj= NULL;
  13354.  
  13355.     CHECK_IP(GetIP(), CVisioShape, FromConnects);
  13356.     if (NULL!=GetIP())
  13357.         hr= GetIP()->get_FromConnects(&lpObj);
  13358.     CHECK_HRESULT(hr, CVisioShape, FromConnects);
  13359.  
  13360.     rWrap= lpObj;
  13361.     if (NULL!=lpObj)
  13362.         lpObj->Release();
  13363.  
  13364.     return hr;
  13365. }
  13366.  
  13367.  
  13368. VW_INLINE HRESULT CVisioShape::Layout()
  13369. {
  13370.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13371.     CHECK_IP(GetIP(), CVisioShape, Layout);
  13372.     if (NULL!=GetIP())
  13373.         hr= GetIP()->Layout();
  13374.     CHECK_HRESULT(hr, CVisioShape, Layout);
  13375.     return hr;
  13376. }
  13377.  
  13378.  
  13379. VW_INLINE HRESULT CVisioShape::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  13380. {
  13381.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13382.     CHECK_IP(GetIP(), CVisioShape, BoundingBox);
  13383.     if (NULL!=GetIP())
  13384.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  13385.     CHECK_HRESULT(hr, CVisioShape, BoundingBox);
  13386.     return hr;
  13387. }
  13388.  
  13389.  
  13390. VW_INLINE HRESULT CVisioShape::HitTest(double xPos, double yPos, double Tolerance, short FAR *lpRet)
  13391. {
  13392.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13393.     CHECK_IP(GetIP(), CVisioShape, HitTest);
  13394.     if (NULL!=GetIP())
  13395.         hr= GetIP()->HitTest(xPos, yPos, Tolerance, lpRet);
  13396.     CHECK_HRESULT(hr, CVisioShape, HitTest);
  13397.     return hr;
  13398. }
  13399.  
  13400.  
  13401. VW_INLINE HRESULT CVisioShape::Hyperlink(CVisioHyperlink FAR &rWrap)
  13402. {
  13403.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13404.     IVHyperlink FAR *lpObj= NULL;
  13405.  
  13406.     CHECK_IP(GetIP(), CVisioShape, Hyperlink);
  13407.     if (NULL!=GetIP())
  13408.         hr= GetIP()->get_Hyperlink(&lpObj);
  13409.     CHECK_HRESULT(hr, CVisioShape, Hyperlink);
  13410.  
  13411.     rWrap= lpObj;
  13412.     if (NULL!=lpObj)
  13413.         lpObj->Release();
  13414.  
  13415.     return hr;
  13416. }
  13417.  
  13418.  
  13419. VW_INLINE HRESULT CVisioShape::ProgID(BSTR_HELPER_CLASS FAR &rWrap)
  13420. {
  13421.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13422.     BSTR lpObj= NULL;
  13423.  
  13424.     CHECK_IP(GetIP(), CVisioShape, ProgID);
  13425.     if (NULL!=GetIP())
  13426.         hr= GetIP()->get_ProgID(&lpObj);
  13427.     CHECK_HRESULT(hr, CVisioShape, ProgID);
  13428.  
  13429.     rWrap= lpObj;
  13430. #ifndef NO_BSTR_HELPER
  13431.     if (NULL!=lpObj)
  13432.         SysFreeString(lpObj);
  13433. #endif  //  NO_BSTR_HELPER
  13434.  
  13435.     return hr;
  13436. }
  13437.  
  13438.  
  13439. VW_INLINE HRESULT CVisioShape::ObjectIsInherited(short FAR *lpRet)
  13440. {
  13441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13442.     CHECK_IP(GetIP(), CVisioShape, ObjectIsInherited);
  13443.     if (NULL!=GetIP())
  13444.         hr= GetIP()->get_ObjectIsInherited(lpRet);
  13445.     CHECK_HRESULT(hr, CVisioShape, ObjectIsInherited);
  13446.     return hr;
  13447. }
  13448.  
  13449.  
  13450. VW_INLINE HRESULT CVisioShape::Paths(CVisioPaths FAR &rWrap)
  13451. {
  13452.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13453.     IVPaths FAR *lpObj= NULL;
  13454.  
  13455.     CHECK_IP(GetIP(), CVisioShape, Paths);
  13456.     if (NULL!=GetIP())
  13457.         hr= GetIP()->get_Paths(&lpObj);
  13458.     CHECK_HRESULT(hr, CVisioShape, Paths);
  13459.  
  13460.     rWrap= lpObj;
  13461.     if (NULL!=lpObj)
  13462.         lpObj->Release();
  13463.  
  13464.     return hr;
  13465. }
  13466.  
  13467.  
  13468. VW_INLINE HRESULT CVisioShape::PathsLocal(CVisioPaths FAR &rWrap)
  13469. {
  13470.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13471.     IVPaths FAR *lpObj= NULL;
  13472.  
  13473.     CHECK_IP(GetIP(), CVisioShape, PathsLocal);
  13474.     if (NULL!=GetIP())
  13475.         hr= GetIP()->get_PathsLocal(&lpObj);
  13476.     CHECK_HRESULT(hr, CVisioShape, PathsLocal);
  13477.  
  13478.     rWrap= lpObj;
  13479.     if (NULL!=lpObj)
  13480.         lpObj->Release();
  13481.  
  13482.     return hr;
  13483. }
  13484.  
  13485.  
  13486. VW_INLINE HRESULT CVisioShape::AddHyperlink(CVisioHyperlink FAR &rWrap)
  13487. {
  13488.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13489.     IVHyperlink FAR *lpObj= NULL;
  13490.  
  13491.     CHECK_IP(GetIP(), CVisioShape, AddHyperlink);
  13492.     if (NULL!=GetIP())
  13493.         hr= GetIP()->AddHyperlink(&lpObj);
  13494.     CHECK_HRESULT(hr, CVisioShape, AddHyperlink);
  13495.  
  13496.     rWrap= lpObj;
  13497.     if (NULL!=lpObj)
  13498.         lpObj->Release();
  13499.  
  13500.     return hr;
  13501. }
  13502.  
  13503.  
  13504.  
  13505. //  ***************************************************************************
  13506. //  Implementation of class CVisioShapes
  13507.  
  13508. VW_INLINE HRESULT CVisioShapes::Application(CVisioApplication FAR &rWrap)
  13509. {
  13510.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13511.     IVApplication FAR *lpObj= NULL;
  13512.  
  13513.     CHECK_IP(GetIP(), CVisioShapes, Application);
  13514.     if (NULL!=GetIP())
  13515.         hr= GetIP()->get_Application(&lpObj);
  13516.     CHECK_HRESULT(hr, CVisioShapes, Application);
  13517.  
  13518.     rWrap= lpObj;
  13519.     if (NULL!=lpObj)
  13520.         lpObj->Release();
  13521.  
  13522.     return hr;
  13523. }
  13524.  
  13525.  
  13526. VW_INLINE HRESULT CVisioShapes::ObjectType(short FAR *lpRet)
  13527. {
  13528.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13529.     CHECK_IP(GetIP(), CVisioShapes, ObjectType);
  13530.     if (NULL!=GetIP())
  13531.         hr= GetIP()->get_ObjectType(lpRet);
  13532.     CHECK_HRESULT(hr, CVisioShapes, ObjectType);
  13533.     return hr;
  13534. }
  13535.  
  13536.  
  13537. VW_INLINE HRESULT CVisioShapes::Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex, CVisioShape FAR &rWrap)
  13538. {
  13539.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13540.     IVShape FAR *lpObj= NULL;
  13541.  
  13542.     CHECK_IP(GetIP(), CVisioShapes, Item);
  13543.     if (NULL!=GetIP())
  13544.         hr= GetIP()->get_Item(NameUIDOrIndex, &lpObj);
  13545.     CHECK_HRESULT(hr, CVisioShapes, Item);
  13546.  
  13547.     rWrap= lpObj;
  13548.     if (NULL!=lpObj)
  13549.         lpObj->Release();
  13550.  
  13551.     return hr;
  13552. }
  13553.  
  13554.  
  13555. VW_INLINE HRESULT CVisioShapes::Count(short FAR *lpRet)
  13556. {
  13557.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13558.     CHECK_IP(GetIP(), CVisioShapes, Count);
  13559.     if (NULL!=GetIP())
  13560.         hr= GetIP()->get_Count(lpRet);
  13561.     CHECK_HRESULT(hr, CVisioShapes, Count);
  13562.     return hr;
  13563. }
  13564.  
  13565.  
  13566. VW_INLINE HRESULT CVisioShapes::Document(CVisioDocument FAR &rWrap)
  13567. {
  13568.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13569.     IVDocument FAR *lpObj= NULL;
  13570.  
  13571.     CHECK_IP(GetIP(), CVisioShapes, Document);
  13572.     if (NULL!=GetIP())
  13573.         hr= GetIP()->get_Document(&lpObj);
  13574.     CHECK_HRESULT(hr, CVisioShapes, Document);
  13575.  
  13576.     rWrap= lpObj;
  13577.     if (NULL!=lpObj)
  13578.         lpObj->Release();
  13579.  
  13580.     return hr;
  13581. }
  13582.  
  13583.  
  13584. VW_INLINE HRESULT CVisioShapes::ContainingPage(CVisioPage FAR &rWrap)
  13585. {
  13586.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13587.     IVPage FAR *lpObj= NULL;
  13588.  
  13589.     CHECK_IP(GetIP(), CVisioShapes, ContainingPage);
  13590.     if (NULL!=GetIP())
  13591.         hr= GetIP()->get_ContainingPage(&lpObj);
  13592.     CHECK_HRESULT(hr, CVisioShapes, ContainingPage);
  13593.  
  13594.     rWrap= lpObj;
  13595.     if (NULL!=lpObj)
  13596.         lpObj->Release();
  13597.  
  13598.     return hr;
  13599. }
  13600.  
  13601.  
  13602. VW_INLINE HRESULT CVisioShapes::ContainingMaster(CVisioMaster FAR &rWrap)
  13603. {
  13604.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13605.     IVMaster FAR *lpObj= NULL;
  13606.  
  13607.     CHECK_IP(GetIP(), CVisioShapes, ContainingMaster);
  13608.     if (NULL!=GetIP())
  13609.         hr= GetIP()->get_ContainingMaster(&lpObj);
  13610.     CHECK_HRESULT(hr, CVisioShapes, ContainingMaster);
  13611.  
  13612.     rWrap= lpObj;
  13613.     if (NULL!=lpObj)
  13614.         lpObj->Release();
  13615.  
  13616.     return hr;
  13617. }
  13618.  
  13619.  
  13620. VW_INLINE HRESULT CVisioShapes::ContainingShape(CVisioShape FAR &rWrap)
  13621. {
  13622.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13623.     IVShape FAR *lpObj= NULL;
  13624.  
  13625.     CHECK_IP(GetIP(), CVisioShapes, ContainingShape);
  13626.     if (NULL!=GetIP())
  13627.         hr= GetIP()->get_ContainingShape(&lpObj);
  13628.     CHECK_HRESULT(hr, CVisioShapes, ContainingShape);
  13629.  
  13630.     rWrap= lpObj;
  13631.     if (NULL!=lpObj)
  13632.         lpObj->Release();
  13633.  
  13634.     return hr;
  13635. }
  13636.  
  13637.  
  13638. VW_INLINE HRESULT CVisioShapes::CenterDrawing()
  13639. {
  13640.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13641.     CHECK_IP(GetIP(), CVisioShapes, CenterDrawing);
  13642.     if (NULL!=GetIP())
  13643.         hr= GetIP()->CenterDrawing();
  13644.     CHECK_HRESULT(hr, CVisioShapes, CenterDrawing);
  13645.     return hr;
  13646. }
  13647.  
  13648.  
  13649. VW_INLINE HRESULT CVisioShapes::Stat(short FAR *lpRet)
  13650. {
  13651.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13652.     CHECK_IP(GetIP(), CVisioShapes, Stat);
  13653.     if (NULL!=GetIP())
  13654.         hr= GetIP()->get_Stat(lpRet);
  13655.     CHECK_HRESULT(hr, CVisioShapes, Stat);
  13656.     return hr;
  13657. }
  13658.  
  13659.  
  13660. VW_INLINE HRESULT CVisioShapes::EventList(CVisioEventList FAR &rWrap)
  13661. {
  13662.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13663.     IVEventList FAR *lpObj= NULL;
  13664.  
  13665.     CHECK_IP(GetIP(), CVisioShapes, EventList);
  13666.     if (NULL!=GetIP())
  13667.         hr= GetIP()->get_EventList(&lpObj);
  13668.     CHECK_HRESULT(hr, CVisioShapes, EventList);
  13669.  
  13670.     rWrap= lpObj;
  13671.     if (NULL!=lpObj)
  13672.         lpObj->Release();
  13673.  
  13674.     return hr;
  13675. }
  13676.  
  13677.  
  13678. VW_INLINE HRESULT CVisioShapes::PersistsEvents(short FAR *lpRet)
  13679. {
  13680.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13681.     CHECK_IP(GetIP(), CVisioShapes, PersistsEvents);
  13682.     if (NULL!=GetIP())
  13683.         hr= GetIP()->get_PersistsEvents(lpRet);
  13684.     CHECK_HRESULT(hr, CVisioShapes, PersistsEvents);
  13685.     return hr;
  13686. }
  13687.  
  13688.  
  13689. VW_INLINE HRESULT CVisioShapes::ItemFromID(short ObjectID, CVisioShape FAR &rWrap)
  13690. {
  13691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13692.     IVShape FAR *lpObj= NULL;
  13693.  
  13694.     CHECK_IP(GetIP(), CVisioShapes, ItemFromID);
  13695.     if (NULL!=GetIP())
  13696.         hr= GetIP()->get_ItemFromID(ObjectID, &lpObj);
  13697.     CHECK_HRESULT(hr, CVisioShapes, ItemFromID);
  13698.  
  13699.     rWrap= lpObj;
  13700.     if (NULL!=lpObj)
  13701.         lpObj->Release();
  13702.  
  13703.     return hr;
  13704. }
  13705.  
  13706.  
  13707.  
  13708. //  ***************************************************************************
  13709. //  Implementation of class CVisioStyle
  13710.  
  13711. VW_INLINE HRESULT CVisioStyle::Application(CVisioApplication FAR &rWrap)
  13712. {
  13713.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13714.     IVApplication FAR *lpObj= NULL;
  13715.  
  13716.     CHECK_IP(GetIP(), CVisioStyle, Application);
  13717.     if (NULL!=GetIP())
  13718.         hr= GetIP()->get_Application(&lpObj);
  13719.     CHECK_HRESULT(hr, CVisioStyle, Application);
  13720.  
  13721.     rWrap= lpObj;
  13722.     if (NULL!=lpObj)
  13723.         lpObj->Release();
  13724.  
  13725.     return hr;
  13726. }
  13727.  
  13728.  
  13729. VW_INLINE HRESULT CVisioStyle::Stat(short FAR *lpRet)
  13730. {
  13731.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13732.     CHECK_IP(GetIP(), CVisioStyle, Stat);
  13733.     if (NULL!=GetIP())
  13734.         hr= GetIP()->get_Stat(lpRet);
  13735.     CHECK_HRESULT(hr, CVisioStyle, Stat);
  13736.     return hr;
  13737. }
  13738.  
  13739.  
  13740. VW_INLINE HRESULT CVisioStyle::ObjectType(short FAR *lpRet)
  13741. {
  13742.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13743.     CHECK_IP(GetIP(), CVisioStyle, ObjectType);
  13744.     if (NULL!=GetIP())
  13745.         hr= GetIP()->get_ObjectType(lpRet);
  13746.     CHECK_HRESULT(hr, CVisioStyle, ObjectType);
  13747.     return hr;
  13748. }
  13749.  
  13750.  
  13751. VW_INLINE HRESULT CVisioStyle::getName(BSTR_HELPER_CLASS FAR &rWrap)
  13752. {
  13753.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13754.     BSTR lpObj= NULL;
  13755.  
  13756.     CHECK_IP(GetIP(), CVisioStyle, getName);
  13757.     if (NULL!=GetIP())
  13758.         hr= GetIP()->get_Name(&lpObj);
  13759.     CHECK_HRESULT(hr, CVisioStyle, getName);
  13760.  
  13761.     rWrap= lpObj;
  13762. #ifndef NO_BSTR_HELPER
  13763.     if (NULL!=lpObj)
  13764.         SysFreeString(lpObj);
  13765. #endif  //  NO_BSTR_HELPER
  13766.  
  13767.     return hr;
  13768. }
  13769.  
  13770.  
  13771. VW_INLINE HRESULT CVisioStyle::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13772. {
  13773.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13774.     CHECK_IP(GetIP(), CVisioStyle, putName);
  13775.     if (NULL!=GetIP())
  13776.         hr= GetIP()->put_Name(param01);
  13777.     CHECK_HRESULT(hr, CVisioStyle, putName);
  13778.     return hr;
  13779. }
  13780.  
  13781.  
  13782. VW_INLINE HRESULT CVisioStyle::Index(short FAR *lpRet)
  13783. {
  13784.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13785.     CHECK_IP(GetIP(), CVisioStyle, Index);
  13786.     if (NULL!=GetIP())
  13787.         hr= GetIP()->get_Index(lpRet);
  13788.     CHECK_HRESULT(hr, CVisioStyle, Index);
  13789.     return hr;
  13790. }
  13791.  
  13792.  
  13793. VW_INLINE HRESULT CVisioStyle::Document(CVisioDocument FAR &rWrap)
  13794. {
  13795.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13796.     IVDocument FAR *lpObj= NULL;
  13797.  
  13798.     CHECK_IP(GetIP(), CVisioStyle, Document);
  13799.     if (NULL!=GetIP())
  13800.         hr= GetIP()->get_Document(&lpObj);
  13801.     CHECK_HRESULT(hr, CVisioStyle, Document);
  13802.  
  13803.     rWrap= lpObj;
  13804.     if (NULL!=lpObj)
  13805.         lpObj->Release();
  13806.  
  13807.     return hr;
  13808. }
  13809.  
  13810.  
  13811. VW_INLINE HRESULT CVisioStyle::getBasedOn(BSTR_HELPER_CLASS FAR &rWrap)
  13812. {
  13813.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13814.     BSTR lpObj= NULL;
  13815.  
  13816.     CHECK_IP(GetIP(), CVisioStyle, getBasedOn);
  13817.     if (NULL!=GetIP())
  13818.         hr= GetIP()->get_BasedOn(&lpObj);
  13819.     CHECK_HRESULT(hr, CVisioStyle, getBasedOn);
  13820.  
  13821.     rWrap= lpObj;
  13822. #ifndef NO_BSTR_HELPER
  13823.     if (NULL!=lpObj)
  13824.         SysFreeString(lpObj);
  13825. #endif  //  NO_BSTR_HELPER
  13826.  
  13827.     return hr;
  13828. }
  13829.  
  13830.  
  13831. VW_INLINE HRESULT CVisioStyle::putBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13832. {
  13833.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13834.     CHECK_IP(GetIP(), CVisioStyle, putBasedOn);
  13835.     if (NULL!=GetIP())
  13836.         hr= GetIP()->put_BasedOn(param01);
  13837.     CHECK_HRESULT(hr, CVisioStyle, putBasedOn);
  13838.     return hr;
  13839. }
  13840.  
  13841.  
  13842. VW_INLINE HRESULT CVisioStyle::getTextBasedOn(BSTR_HELPER_CLASS FAR &rWrap)
  13843. {
  13844.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13845.     BSTR lpObj= NULL;
  13846.  
  13847.     CHECK_IP(GetIP(), CVisioStyle, getTextBasedOn);
  13848.     if (NULL!=GetIP())
  13849.         hr= GetIP()->get_TextBasedOn(&lpObj);
  13850.     CHECK_HRESULT(hr, CVisioStyle, getTextBasedOn);
  13851.  
  13852.     rWrap= lpObj;
  13853. #ifndef NO_BSTR_HELPER
  13854.     if (NULL!=lpObj)
  13855.         SysFreeString(lpObj);
  13856. #endif  //  NO_BSTR_HELPER
  13857.  
  13858.     return hr;
  13859. }
  13860.  
  13861.  
  13862. VW_INLINE HRESULT CVisioStyle::putTextBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13863. {
  13864.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13865.     CHECK_IP(GetIP(), CVisioStyle, putTextBasedOn);
  13866.     if (NULL!=GetIP())
  13867.         hr= GetIP()->put_TextBasedOn(param01);
  13868.     CHECK_HRESULT(hr, CVisioStyle, putTextBasedOn);
  13869.     return hr;
  13870. }
  13871.  
  13872.  
  13873. VW_INLINE HRESULT CVisioStyle::getLineBasedOn(BSTR_HELPER_CLASS FAR &rWrap)
  13874. {
  13875.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13876.     BSTR lpObj= NULL;
  13877.  
  13878.     CHECK_IP(GetIP(), CVisioStyle, getLineBasedOn);
  13879.     if (NULL!=GetIP())
  13880.         hr= GetIP()->get_LineBasedOn(&lpObj);
  13881.     CHECK_HRESULT(hr, CVisioStyle, getLineBasedOn);
  13882.  
  13883.     rWrap= lpObj;
  13884. #ifndef NO_BSTR_HELPER
  13885.     if (NULL!=lpObj)
  13886.         SysFreeString(lpObj);
  13887. #endif  //  NO_BSTR_HELPER
  13888.  
  13889.     return hr;
  13890. }
  13891.  
  13892.  
  13893. VW_INLINE HRESULT CVisioStyle::putLineBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13894. {
  13895.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13896.     CHECK_IP(GetIP(), CVisioStyle, putLineBasedOn);
  13897.     if (NULL!=GetIP())
  13898.         hr= GetIP()->put_LineBasedOn(param01);
  13899.     CHECK_HRESULT(hr, CVisioStyle, putLineBasedOn);
  13900.     return hr;
  13901. }
  13902.  
  13903.  
  13904. VW_INLINE HRESULT CVisioStyle::getFillBasedOn(BSTR_HELPER_CLASS FAR &rWrap)
  13905. {
  13906.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13907.     BSTR lpObj= NULL;
  13908.  
  13909.     CHECK_IP(GetIP(), CVisioStyle, getFillBasedOn);
  13910.     if (NULL!=GetIP())
  13911.         hr= GetIP()->get_FillBasedOn(&lpObj);
  13912.     CHECK_HRESULT(hr, CVisioStyle, getFillBasedOn);
  13913.  
  13914.     rWrap= lpObj;
  13915. #ifndef NO_BSTR_HELPER
  13916.     if (NULL!=lpObj)
  13917.         SysFreeString(lpObj);
  13918. #endif  //  NO_BSTR_HELPER
  13919.  
  13920.     return hr;
  13921. }
  13922.  
  13923.  
  13924. VW_INLINE HRESULT CVisioStyle::putFillBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13925. {
  13926.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13927.     CHECK_IP(GetIP(), CVisioStyle, putFillBasedOn);
  13928.     if (NULL!=GetIP())
  13929.         hr= GetIP()->put_FillBasedOn(param01);
  13930.     CHECK_HRESULT(hr, CVisioStyle, putFillBasedOn);
  13931.     return hr;
  13932. }
  13933.  
  13934.  
  13935. VW_INLINE HRESULT CVisioStyle::getIncludesText(short FAR *lpRet)
  13936. {
  13937.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13938.     CHECK_IP(GetIP(), CVisioStyle, getIncludesText);
  13939.     if (NULL!=GetIP())
  13940.         hr= GetIP()->get_IncludesText(lpRet);
  13941.     CHECK_HRESULT(hr, CVisioStyle, getIncludesText);
  13942.     return hr;
  13943. }
  13944.  
  13945.  
  13946. VW_INLINE HRESULT CVisioStyle::putIncludesText(VW_CONST short param01)
  13947. {
  13948.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13949.     CHECK_IP(GetIP(), CVisioStyle, putIncludesText);
  13950.     if (NULL!=GetIP())
  13951.         hr= GetIP()->put_IncludesText(param01);
  13952.     CHECK_HRESULT(hr, CVisioStyle, putIncludesText);
  13953.     return hr;
  13954. }
  13955.  
  13956.  
  13957. VW_INLINE HRESULT CVisioStyle::getIncludesLine(short FAR *lpRet)
  13958. {
  13959.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13960.     CHECK_IP(GetIP(), CVisioStyle, getIncludesLine);
  13961.     if (NULL!=GetIP())
  13962.         hr= GetIP()->get_IncludesLine(lpRet);
  13963.     CHECK_HRESULT(hr, CVisioStyle, getIncludesLine);
  13964.     return hr;
  13965. }
  13966.  
  13967.  
  13968. VW_INLINE HRESULT CVisioStyle::putIncludesLine(VW_CONST short param01)
  13969. {
  13970.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13971.     CHECK_IP(GetIP(), CVisioStyle, putIncludesLine);
  13972.     if (NULL!=GetIP())
  13973.         hr= GetIP()->put_IncludesLine(param01);
  13974.     CHECK_HRESULT(hr, CVisioStyle, putIncludesLine);
  13975.     return hr;
  13976. }
  13977.  
  13978.  
  13979. VW_INLINE HRESULT CVisioStyle::getIncludesFill(short FAR *lpRet)
  13980. {
  13981.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13982.     CHECK_IP(GetIP(), CVisioStyle, getIncludesFill);
  13983.     if (NULL!=GetIP())
  13984.         hr= GetIP()->get_IncludesFill(lpRet);
  13985.     CHECK_HRESULT(hr, CVisioStyle, getIncludesFill);
  13986.     return hr;
  13987. }
  13988.  
  13989.  
  13990. VW_INLINE HRESULT CVisioStyle::putIncludesFill(VW_CONST short param01)
  13991. {
  13992.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13993.     CHECK_IP(GetIP(), CVisioStyle, putIncludesFill);
  13994.     if (NULL!=GetIP())
  13995.         hr= GetIP()->put_IncludesFill(param01);
  13996.     CHECK_HRESULT(hr, CVisioStyle, putIncludesFill);
  13997.     return hr;
  13998. }
  13999.  
  14000.  
  14001. VW_INLINE HRESULT CVisioStyle::Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap)
  14002. {
  14003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14004.     IVCell FAR *lpObj= NULL;
  14005.  
  14006.     CHECK_IP(GetIP(), CVisioStyle, Cells);
  14007.     if (NULL!=GetIP())
  14008.         hr= GetIP()->get_Cells(CellName, &lpObj);
  14009.     CHECK_HRESULT(hr, CVisioStyle, Cells);
  14010.  
  14011.     rWrap= lpObj;
  14012.     if (NULL!=lpObj)
  14013.         lpObj->Release();
  14014.  
  14015.     return hr;
  14016. }
  14017.  
  14018.  
  14019. VW_INLINE HRESULT CVisioStyle::Delete()
  14020. {
  14021.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14022.     CHECK_IP(GetIP(), CVisioStyle, Delete);
  14023.     if (NULL!=GetIP())
  14024.         hr= GetIP()->Delete();
  14025.     CHECK_HRESULT(hr, CVisioStyle, Delete);
  14026.     return hr;
  14027. }
  14028.  
  14029.  
  14030. VW_INLINE HRESULT CVisioStyle::EventList(CVisioEventList FAR &rWrap)
  14031. {
  14032.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14033.     IVEventList FAR *lpObj= NULL;
  14034.  
  14035.     CHECK_IP(GetIP(), CVisioStyle, EventList);
  14036.     if (NULL!=GetIP())
  14037.         hr= GetIP()->get_EventList(&lpObj);
  14038.     CHECK_HRESULT(hr, CVisioStyle, EventList);
  14039.  
  14040.     rWrap= lpObj;
  14041.     if (NULL!=lpObj)
  14042.         lpObj->Release();
  14043.  
  14044.     return hr;
  14045. }
  14046.  
  14047.  
  14048. VW_INLINE HRESULT CVisioStyle::PersistsEvents(short FAR *lpRet)
  14049. {
  14050.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14051.     CHECK_IP(GetIP(), CVisioStyle, PersistsEvents);
  14052.     if (NULL!=GetIP())
  14053.         hr= GetIP()->get_PersistsEvents(lpRet);
  14054.     CHECK_HRESULT(hr, CVisioStyle, PersistsEvents);
  14055.     return hr;
  14056. }
  14057.  
  14058.  
  14059. VW_INLINE HRESULT CVisioStyle::ID(short FAR *lpRet)
  14060. {
  14061.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14062.     CHECK_IP(GetIP(), CVisioStyle, ID);
  14063.     if (NULL!=GetIP())
  14064.         hr= GetIP()->get_ID(lpRet);
  14065.     CHECK_HRESULT(hr, CVisioStyle, ID);
  14066.     return hr;
  14067. }
  14068.  
  14069.  
  14070. VW_INLINE HRESULT CVisioStyle::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  14071. {
  14072.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14073.     CHECK_IP(GetIP(), CVisioStyle, GetFormulas);
  14074.     if (NULL!=GetIP())
  14075.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  14076.     CHECK_HRESULT(hr, CVisioStyle, GetFormulas);
  14077.     return hr;
  14078. }
  14079.  
  14080.  
  14081. VW_INLINE HRESULT CVisioStyle::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  14082. {
  14083.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14084.     CHECK_IP(GetIP(), CVisioStyle, GetResults);
  14085.     if (NULL!=GetIP())
  14086.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  14087.     CHECK_HRESULT(hr, CVisioStyle, GetResults);
  14088.     return hr;
  14089. }
  14090.  
  14091.  
  14092. VW_INLINE HRESULT CVisioStyle::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
  14093. {
  14094.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14095.     CHECK_IP(GetIP(), CVisioStyle, SetFormulas);
  14096.     if (NULL!=GetIP())
  14097.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, lpRet);
  14098.     CHECK_HRESULT(hr, CVisioStyle, SetFormulas);
  14099.     return hr;
  14100. }
  14101.  
  14102.  
  14103. VW_INLINE HRESULT CVisioStyle::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
  14104. {
  14105.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14106.     CHECK_IP(GetIP(), CVisioStyle, SetResults);
  14107.     if (NULL!=GetIP())
  14108.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, lpRet);
  14109.     CHECK_HRESULT(hr, CVisioStyle, SetResults);
  14110.     return hr;
  14111. }
  14112.  
  14113.  
  14114.  
  14115. //  ***************************************************************************
  14116. //  Implementation of class CVisioStyles
  14117.  
  14118. VW_INLINE HRESULT CVisioStyles::Application(CVisioApplication FAR &rWrap)
  14119. {
  14120.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14121.     IVApplication FAR *lpObj= NULL;
  14122.  
  14123.     CHECK_IP(GetIP(), CVisioStyles, Application);
  14124.     if (NULL!=GetIP())
  14125.         hr= GetIP()->get_Application(&lpObj);
  14126.     CHECK_HRESULT(hr, CVisioStyles, Application);
  14127.  
  14128.     rWrap= lpObj;
  14129.     if (NULL!=lpObj)
  14130.         lpObj->Release();
  14131.  
  14132.     return hr;
  14133. }
  14134.  
  14135.  
  14136. VW_INLINE HRESULT CVisioStyles::ObjectType(short FAR *lpRet)
  14137. {
  14138.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14139.     CHECK_IP(GetIP(), CVisioStyles, ObjectType);
  14140.     if (NULL!=GetIP())
  14141.         hr= GetIP()->get_ObjectType(lpRet);
  14142.     CHECK_HRESULT(hr, CVisioStyles, ObjectType);
  14143.     return hr;
  14144. }
  14145.  
  14146.  
  14147. VW_INLINE HRESULT CVisioStyles::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioStyle FAR &rWrap)
  14148. {
  14149.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14150.     IVStyle FAR *lpObj= NULL;
  14151.  
  14152.     CHECK_IP(GetIP(), CVisioStyles, Item);
  14153.     if (NULL!=GetIP())
  14154.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  14155.     CHECK_HRESULT(hr, CVisioStyles, Item);
  14156.  
  14157.     rWrap= lpObj;
  14158.     if (NULL!=lpObj)
  14159.         lpObj->Release();
  14160.  
  14161.     return hr;
  14162. }
  14163.  
  14164.  
  14165. VW_INLINE HRESULT CVisioStyles::Count(short FAR *lpRet)
  14166. {
  14167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14168.     CHECK_IP(GetIP(), CVisioStyles, Count);
  14169.     if (NULL!=GetIP())
  14170.         hr= GetIP()->get_Count(lpRet);
  14171.     CHECK_HRESULT(hr, CVisioStyles, Count);
  14172.     return hr;
  14173. }
  14174.  
  14175.  
  14176. VW_INLINE HRESULT CVisioStyles::Document(CVisioDocument FAR &rWrap)
  14177. {
  14178.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14179.     IVDocument FAR *lpObj= NULL;
  14180.  
  14181.     CHECK_IP(GetIP(), CVisioStyles, Document);
  14182.     if (NULL!=GetIP())
  14183.         hr= GetIP()->get_Document(&lpObj);
  14184.     CHECK_HRESULT(hr, CVisioStyles, Document);
  14185.  
  14186.     rWrap= lpObj;
  14187.     if (NULL!=lpObj)
  14188.         lpObj->Release();
  14189.  
  14190.     return hr;
  14191. }
  14192.  
  14193.  
  14194. VW_INLINE HRESULT CVisioStyles::Add(BSTR_HELPER_CLASS FAR &StyleName, BSTR_HELPER_CLASS FAR &BasedOn, short fIncludesText, short fIncludesLine, short fIncludesFill, CVisioStyle FAR &rWrap)
  14195. {
  14196.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14197.     IVStyle FAR *lpObj= NULL;
  14198.  
  14199.     CHECK_IP(GetIP(), CVisioStyles, Add);
  14200.     if (NULL!=GetIP())
  14201.         hr= GetIP()->Add(StyleName, BasedOn, fIncludesText, fIncludesLine, fIncludesFill, &lpObj);
  14202.     CHECK_HRESULT(hr, CVisioStyles, Add);
  14203.  
  14204.     rWrap= lpObj;
  14205.     if (NULL!=lpObj)
  14206.         lpObj->Release();
  14207.  
  14208.     return hr;
  14209. }
  14210.  
  14211.  
  14212. VW_INLINE HRESULT CVisioStyles::Stat(short FAR *lpRet)
  14213. {
  14214.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14215.     CHECK_IP(GetIP(), CVisioStyles, Stat);
  14216.     if (NULL!=GetIP())
  14217.         hr= GetIP()->get_Stat(lpRet);
  14218.     CHECK_HRESULT(hr, CVisioStyles, Stat);
  14219.     return hr;
  14220. }
  14221.  
  14222.  
  14223. VW_INLINE HRESULT CVisioStyles::EventList(CVisioEventList FAR &rWrap)
  14224. {
  14225.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14226.     IVEventList FAR *lpObj= NULL;
  14227.  
  14228.     CHECK_IP(GetIP(), CVisioStyles, EventList);
  14229.     if (NULL!=GetIP())
  14230.         hr= GetIP()->get_EventList(&lpObj);
  14231.     CHECK_HRESULT(hr, CVisioStyles, EventList);
  14232.  
  14233.     rWrap= lpObj;
  14234.     if (NULL!=lpObj)
  14235.         lpObj->Release();
  14236.  
  14237.     return hr;
  14238. }
  14239.  
  14240.  
  14241. VW_INLINE HRESULT CVisioStyles::PersistsEvents(short FAR *lpRet)
  14242. {
  14243.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14244.     CHECK_IP(GetIP(), CVisioStyles, PersistsEvents);
  14245.     if (NULL!=GetIP())
  14246.         hr= GetIP()->get_PersistsEvents(lpRet);
  14247.     CHECK_HRESULT(hr, CVisioStyles, PersistsEvents);
  14248.     return hr;
  14249. }
  14250.  
  14251.  
  14252. VW_INLINE HRESULT CVisioStyles::ItemFromID(short ObjectID, CVisioStyle FAR &rWrap)
  14253. {
  14254.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14255.     IVStyle FAR *lpObj= NULL;
  14256.  
  14257.     CHECK_IP(GetIP(), CVisioStyles, ItemFromID);
  14258.     if (NULL!=GetIP())
  14259.         hr= GetIP()->get_ItemFromID(ObjectID, &lpObj);
  14260.     CHECK_HRESULT(hr, CVisioStyles, ItemFromID);
  14261.  
  14262.     rWrap= lpObj;
  14263.     if (NULL!=lpObj)
  14264.         lpObj->Release();
  14265.  
  14266.     return hr;
  14267. }
  14268.  
  14269.  
  14270. VW_INLINE HRESULT CVisioStyles::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  14271. {
  14272.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14273.     CHECK_IP(GetIP(), CVisioStyles, GetNames);
  14274.     if (NULL!=GetIP())
  14275.         hr= GetIP()->GetNames(NameArray);
  14276.     CHECK_HRESULT(hr, CVisioStyles, GetNames);
  14277.     return hr;
  14278. }
  14279.  
  14280.  
  14281.  
  14282. //  ***************************************************************************
  14283. //  Implementation of class CVisioWindow
  14284.  
  14285. VW_INLINE HRESULT CVisioWindow::Application(CVisioApplication FAR &rWrap)
  14286. {
  14287.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14288.     IVApplication FAR *lpObj= NULL;
  14289.  
  14290.     CHECK_IP(GetIP(), CVisioWindow, Application);
  14291.     if (NULL!=GetIP())
  14292.         hr= GetIP()->get_Application(&lpObj);
  14293.     CHECK_HRESULT(hr, CVisioWindow, Application);
  14294.  
  14295.     rWrap= lpObj;
  14296.     if (NULL!=lpObj)
  14297.         lpObj->Release();
  14298.  
  14299.     return hr;
  14300. }
  14301.  
  14302.  
  14303. VW_INLINE HRESULT CVisioWindow::Stat(short FAR *lpRet)
  14304. {
  14305.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14306.     CHECK_IP(GetIP(), CVisioWindow, Stat);
  14307.     if (NULL!=GetIP())
  14308.         hr= GetIP()->get_Stat(lpRet);
  14309.     CHECK_HRESULT(hr, CVisioWindow, Stat);
  14310.     return hr;
  14311. }
  14312.  
  14313.  
  14314. VW_INLINE HRESULT CVisioWindow::ObjectType(short FAR *lpRet)
  14315. {
  14316.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14317.     CHECK_IP(GetIP(), CVisioWindow, ObjectType);
  14318.     if (NULL!=GetIP())
  14319.         hr= GetIP()->get_ObjectType(lpRet);
  14320.     CHECK_HRESULT(hr, CVisioWindow, ObjectType);
  14321.     return hr;
  14322. }
  14323.  
  14324.  
  14325. VW_INLINE HRESULT CVisioWindow::Activate()
  14326. {
  14327.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14328.     CHECK_IP(GetIP(), CVisioWindow, Activate);
  14329.     if (NULL!=GetIP())
  14330.         hr= GetIP()->Activate();
  14331.     CHECK_HRESULT(hr, CVisioWindow, Activate);
  14332.     return hr;
  14333. }
  14334.  
  14335.  
  14336. VW_INLINE HRESULT CVisioWindow::Type(short FAR *lpRet)
  14337. {
  14338.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14339.     CHECK_IP(GetIP(), CVisioWindow, Type);
  14340.     if (NULL!=GetIP())
  14341.         hr= GetIP()->get_Type(lpRet);
  14342.     CHECK_HRESULT(hr, CVisioWindow, Type);
  14343.     return hr;
  14344. }
  14345.  
  14346.  
  14347. VW_INLINE HRESULT CVisioWindow::Document(CVisioDocument FAR &rWrap)
  14348. {
  14349.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14350.     IVDocument FAR *lpObj= NULL;
  14351.  
  14352.     CHECK_IP(GetIP(), CVisioWindow, Document);
  14353.     if (NULL!=GetIP())
  14354.         hr= GetIP()->get_Document(&lpObj);
  14355.     CHECK_HRESULT(hr, CVisioWindow, Document);
  14356.  
  14357.     rWrap= lpObj;
  14358.     if (NULL!=lpObj)
  14359.         lpObj->Release();
  14360.  
  14361.     return hr;
  14362. }
  14363.  
  14364.  
  14365. VW_INLINE HRESULT CVisioWindow::PageAsObj(CVisioPage FAR &rWrap)
  14366. {
  14367.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14368.     IVPage FAR *lpObj= NULL;
  14369.  
  14370.     CHECK_IP(GetIP(), CVisioWindow, PageAsObj);
  14371.     if (NULL!=GetIP())
  14372.         hr= GetIP()->get_PageAsObj(&lpObj);
  14373.     CHECK_HRESULT(hr, CVisioWindow, PageAsObj);
  14374.  
  14375.     rWrap= lpObj;
  14376.     if (NULL!=lpObj)
  14377.         lpObj->Release();
  14378.  
  14379.     return hr;
  14380. }
  14381.  
  14382.  
  14383. VW_INLINE HRESULT CVisioWindow::PageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14384. {
  14385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14386.     CHECK_IP(GetIP(), CVisioWindow, PageFromName);
  14387.     if (NULL!=GetIP())
  14388.         hr= GetIP()->put_PageFromName(param01);
  14389.     CHECK_HRESULT(hr, CVisioWindow, PageFromName);
  14390.     return hr;
  14391. }
  14392.  
  14393.  
  14394. VW_INLINE HRESULT CVisioWindow::getZoom(double FAR *lpRet)
  14395. {
  14396.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14397.     CHECK_IP(GetIP(), CVisioWindow, getZoom);
  14398.     if (NULL!=GetIP())
  14399.         hr= GetIP()->get_Zoom(lpRet);
  14400.     CHECK_HRESULT(hr, CVisioWindow, getZoom);
  14401.     return hr;
  14402. }
  14403.  
  14404.  
  14405. VW_INLINE HRESULT CVisioWindow::putZoom(VW_CONST double param01)
  14406. {
  14407.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14408.     CHECK_IP(GetIP(), CVisioWindow, putZoom);
  14409.     if (NULL!=GetIP())
  14410.         hr= GetIP()->put_Zoom(param01);
  14411.     CHECK_HRESULT(hr, CVisioWindow, putZoom);
  14412.     return hr;
  14413. }
  14414.  
  14415.  
  14416. VW_INLINE HRESULT CVisioWindow::Close()
  14417. {
  14418.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14419.     CHECK_IP(GetIP(), CVisioWindow, Close);
  14420.     if (NULL!=GetIP())
  14421.         hr= GetIP()->Close();
  14422.     CHECK_HRESULT(hr, CVisioWindow, Close);
  14423.     return hr;
  14424. }
  14425.  
  14426.  
  14427. VW_INLINE HRESULT CVisioWindow::SelectAll()
  14428. {
  14429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14430.     CHECK_IP(GetIP(), CVisioWindow, SelectAll);
  14431.     if (NULL!=GetIP())
  14432.         hr= GetIP()->SelectAll();
  14433.     CHECK_HRESULT(hr, CVisioWindow, SelectAll);
  14434.     return hr;
  14435. }
  14436.  
  14437.  
  14438. VW_INLINE HRESULT CVisioWindow::DeselectAll()
  14439. {
  14440.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14441.     CHECK_IP(GetIP(), CVisioWindow, DeselectAll);
  14442.     if (NULL!=GetIP())
  14443.         hr= GetIP()->DeselectAll();
  14444.     CHECK_HRESULT(hr, CVisioWindow, DeselectAll);
  14445.     return hr;
  14446. }
  14447.  
  14448.  
  14449. VW_INLINE HRESULT CVisioWindow::Selection(CVisioSelection FAR &rWrap)
  14450. {
  14451.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14452.     IVSelection FAR *lpObj= NULL;
  14453.  
  14454.     CHECK_IP(GetIP(), CVisioWindow, Selection);
  14455.     if (NULL!=GetIP())
  14456.         hr= GetIP()->get_Selection(&lpObj);
  14457.     CHECK_HRESULT(hr, CVisioWindow, Selection);
  14458.  
  14459.     rWrap= lpObj;
  14460.     if (NULL!=lpObj)
  14461.         lpObj->Release();
  14462.  
  14463.     return hr;
  14464. }
  14465.  
  14466.  
  14467. VW_INLINE HRESULT CVisioWindow::Select(CVisioShape FAR &SheetObject, short SelectAction)
  14468. {
  14469.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14470.     CHECK_IP(GetIP(), CVisioWindow, Select);
  14471.     if (NULL!=GetIP())
  14472.         hr= GetIP()->Select(SheetObject, SelectAction);
  14473.     CHECK_HRESULT(hr, CVisioWindow, Select);
  14474.     return hr;
  14475. }
  14476.  
  14477.  
  14478. VW_INLINE HRESULT CVisioWindow::Index(short FAR *lpRet)
  14479. {
  14480.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14481.     CHECK_IP(GetIP(), CVisioWindow, Index);
  14482.     if (NULL!=GetIP())
  14483.         hr= GetIP()->get_Index(lpRet);
  14484.     CHECK_HRESULT(hr, CVisioWindow, Index);
  14485.     return hr;
  14486. }
  14487.  
  14488.  
  14489. VW_INLINE HRESULT CVisioWindow::Cut()
  14490. {
  14491.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14492.     CHECK_IP(GetIP(), CVisioWindow, Cut);
  14493.     if (NULL!=GetIP())
  14494.         hr= GetIP()->Cut();
  14495.     CHECK_HRESULT(hr, CVisioWindow, Cut);
  14496.     return hr;
  14497. }
  14498.  
  14499.  
  14500. VW_INLINE HRESULT CVisioWindow::Copy()
  14501. {
  14502.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14503.     CHECK_IP(GetIP(), CVisioWindow, Copy);
  14504.     if (NULL!=GetIP())
  14505.         hr= GetIP()->Copy();
  14506.     CHECK_HRESULT(hr, CVisioWindow, Copy);
  14507.     return hr;
  14508. }
  14509.  
  14510.  
  14511. VW_INLINE HRESULT CVisioWindow::Paste()
  14512. {
  14513.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14514.     CHECK_IP(GetIP(), CVisioWindow, Paste);
  14515.     if (NULL!=GetIP())
  14516.         hr= GetIP()->Paste();
  14517.     CHECK_HRESULT(hr, CVisioWindow, Paste);
  14518.     return hr;
  14519. }
  14520.  
  14521.  
  14522. VW_INLINE HRESULT CVisioWindow::Delete()
  14523. {
  14524.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14525.     CHECK_IP(GetIP(), CVisioWindow, Delete);
  14526.     if (NULL!=GetIP())
  14527.         hr= GetIP()->Delete();
  14528.     CHECK_HRESULT(hr, CVisioWindow, Delete);
  14529.     return hr;
  14530. }
  14531.  
  14532.  
  14533. VW_INLINE HRESULT CVisioWindow::Duplicate()
  14534. {
  14535.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14536.     CHECK_IP(GetIP(), CVisioWindow, Duplicate);
  14537.     if (NULL!=GetIP())
  14538.         hr= GetIP()->Duplicate();
  14539.     CHECK_HRESULT(hr, CVisioWindow, Duplicate);
  14540.     return hr;
  14541. }
  14542.  
  14543.  
  14544. VW_INLINE HRESULT CVisioWindow::Group()
  14545. {
  14546.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14547.     CHECK_IP(GetIP(), CVisioWindow, Group);
  14548.     if (NULL!=GetIP())
  14549.         hr= GetIP()->Group();
  14550.     CHECK_HRESULT(hr, CVisioWindow, Group);
  14551.     return hr;
  14552. }
  14553.  
  14554.  
  14555. VW_INLINE HRESULT CVisioWindow::Union()
  14556. {
  14557.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14558.     CHECK_IP(GetIP(), CVisioWindow, Union);
  14559.     if (NULL!=GetIP())
  14560.         hr= GetIP()->Union();
  14561.     CHECK_HRESULT(hr, CVisioWindow, Union);
  14562.     return hr;
  14563. }
  14564.  
  14565.  
  14566. VW_INLINE HRESULT CVisioWindow::Combine()
  14567. {
  14568.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14569.     CHECK_IP(GetIP(), CVisioWindow, Combine);
  14570.     if (NULL!=GetIP())
  14571.         hr= GetIP()->Combine();
  14572.     CHECK_HRESULT(hr, CVisioWindow, Combine);
  14573.     return hr;
  14574. }
  14575.  
  14576.  
  14577. VW_INLINE HRESULT CVisioWindow::Fragment()
  14578. {
  14579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14580.     CHECK_IP(GetIP(), CVisioWindow, Fragment);
  14581.     if (NULL!=GetIP())
  14582.         hr= GetIP()->Fragment();
  14583.     CHECK_HRESULT(hr, CVisioWindow, Fragment);
  14584.     return hr;
  14585. }
  14586.  
  14587.  
  14588. VW_INLINE HRESULT CVisioWindow::AddToGroup()
  14589. {
  14590.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14591.     CHECK_IP(GetIP(), CVisioWindow, AddToGroup);
  14592.     if (NULL!=GetIP())
  14593.         hr= GetIP()->AddToGroup();
  14594.     CHECK_HRESULT(hr, CVisioWindow, AddToGroup);
  14595.     return hr;
  14596. }
  14597.  
  14598.  
  14599. VW_INLINE HRESULT CVisioWindow::RemoveFromGroup()
  14600. {
  14601.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14602.     CHECK_IP(GetIP(), CVisioWindow, RemoveFromGroup);
  14603.     if (NULL!=GetIP())
  14604.         hr= GetIP()->RemoveFromGroup();
  14605.     CHECK_HRESULT(hr, CVisioWindow, RemoveFromGroup);
  14606.     return hr;
  14607. }
  14608.  
  14609.  
  14610. VW_INLINE HRESULT CVisioWindow::SubType(short FAR *lpRet)
  14611. {
  14612.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14613.     CHECK_IP(GetIP(), CVisioWindow, SubType);
  14614.     if (NULL!=GetIP())
  14615.         hr= GetIP()->get_SubType(lpRet);
  14616.     CHECK_HRESULT(hr, CVisioWindow, SubType);
  14617.     return hr;
  14618. }
  14619.  
  14620.  
  14621. VW_INLINE HRESULT CVisioWindow::Intersect()
  14622. {
  14623.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14624.     CHECK_IP(GetIP(), CVisioWindow, Intersect);
  14625.     if (NULL!=GetIP())
  14626.         hr= GetIP()->Intersect();
  14627.     CHECK_HRESULT(hr, CVisioWindow, Intersect);
  14628.     return hr;
  14629. }
  14630.  
  14631.  
  14632. VW_INLINE HRESULT CVisioWindow::Subtract()
  14633. {
  14634.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14635.     CHECK_IP(GetIP(), CVisioWindow, Subtract);
  14636.     if (NULL!=GetIP())
  14637.         hr= GetIP()->Subtract();
  14638.     CHECK_HRESULT(hr, CVisioWindow, Subtract);
  14639.     return hr;
  14640. }
  14641.  
  14642.  
  14643. VW_INLINE HRESULT CVisioWindow::EventList(CVisioEventList FAR &rWrap)
  14644. {
  14645.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14646.     IVEventList FAR *lpObj= NULL;
  14647.  
  14648.     CHECK_IP(GetIP(), CVisioWindow, EventList);
  14649.     if (NULL!=GetIP())
  14650.         hr= GetIP()->get_EventList(&lpObj);
  14651.     CHECK_HRESULT(hr, CVisioWindow, EventList);
  14652.  
  14653.     rWrap= lpObj;
  14654.     if (NULL!=lpObj)
  14655.         lpObj->Release();
  14656.  
  14657.     return hr;
  14658. }
  14659.  
  14660.  
  14661. VW_INLINE HRESULT CVisioWindow::PersistsEvents(short FAR *lpRet)
  14662. {
  14663.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14664.     CHECK_IP(GetIP(), CVisioWindow, PersistsEvents);
  14665.     if (NULL!=GetIP())
  14666.         hr= GetIP()->get_PersistsEvents(lpRet);
  14667.     CHECK_HRESULT(hr, CVisioWindow, PersistsEvents);
  14668.     return hr;
  14669. }
  14670.  
  14671.  
  14672. VW_INLINE HRESULT CVisioWindow::WindowHandle(short FAR *lpRet)
  14673. {
  14674.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14675.     CHECK_IP(GetIP(), CVisioWindow, WindowHandle);
  14676.     if (NULL!=GetIP())
  14677.         hr= GetIP()->get_WindowHandle(lpRet);
  14678.     CHECK_HRESULT(hr, CVisioWindow, WindowHandle);
  14679.     return hr;
  14680. }
  14681.  
  14682.  
  14683. VW_INLINE HRESULT CVisioWindow::WindowHandle32(long FAR *lpRet)
  14684. {
  14685.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14686.     CHECK_IP(GetIP(), CVisioWindow, WindowHandle32);
  14687.     if (NULL!=GetIP())
  14688.         hr= GetIP()->get_WindowHandle32(lpRet);
  14689.     CHECK_HRESULT(hr, CVisioWindow, WindowHandle32);
  14690.     return hr;
  14691. }
  14692.  
  14693.  
  14694. VW_INLINE HRESULT CVisioWindow::Trim()
  14695. {
  14696.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14697.     CHECK_IP(GetIP(), CVisioWindow, Trim);
  14698.     if (NULL!=GetIP())
  14699.         hr= GetIP()->Trim();
  14700.     CHECK_HRESULT(hr, CVisioWindow, Trim);
  14701.     return hr;
  14702. }
  14703.  
  14704.  
  14705. VW_INLINE HRESULT CVisioWindow::Join()
  14706. {
  14707.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14708.     CHECK_IP(GetIP(), CVisioWindow, Join);
  14709.     if (NULL!=GetIP())
  14710.         hr= GetIP()->Join();
  14711.     CHECK_HRESULT(hr, CVisioWindow, Join);
  14712.     return hr;
  14713. }
  14714.  
  14715.  
  14716. VW_INLINE HRESULT CVisioWindow::getShowRulers(short FAR *lpRet)
  14717. {
  14718.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14719.     CHECK_IP(GetIP(), CVisioWindow, getShowRulers);
  14720.     if (NULL!=GetIP())
  14721.         hr= GetIP()->get_ShowRulers(lpRet);
  14722.     CHECK_HRESULT(hr, CVisioWindow, getShowRulers);
  14723.     return hr;
  14724. }
  14725.  
  14726.  
  14727. VW_INLINE HRESULT CVisioWindow::putShowRulers(VW_CONST short param01)
  14728. {
  14729.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14730.     CHECK_IP(GetIP(), CVisioWindow, putShowRulers);
  14731.     if (NULL!=GetIP())
  14732.         hr= GetIP()->put_ShowRulers(param01);
  14733.     CHECK_HRESULT(hr, CVisioWindow, putShowRulers);
  14734.     return hr;
  14735. }
  14736.  
  14737.  
  14738. VW_INLINE HRESULT CVisioWindow::getShowGrid(short FAR *lpRet)
  14739. {
  14740.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14741.     CHECK_IP(GetIP(), CVisioWindow, getShowGrid);
  14742.     if (NULL!=GetIP())
  14743.         hr= GetIP()->get_ShowGrid(lpRet);
  14744.     CHECK_HRESULT(hr, CVisioWindow, getShowGrid);
  14745.     return hr;
  14746. }
  14747.  
  14748.  
  14749. VW_INLINE HRESULT CVisioWindow::putShowGrid(VW_CONST short param01)
  14750. {
  14751.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14752.     CHECK_IP(GetIP(), CVisioWindow, putShowGrid);
  14753.     if (NULL!=GetIP())
  14754.         hr= GetIP()->put_ShowGrid(param01);
  14755.     CHECK_HRESULT(hr, CVisioWindow, putShowGrid);
  14756.     return hr;
  14757. }
  14758.  
  14759.  
  14760. VW_INLINE HRESULT CVisioWindow::getShowGuides(short FAR *lpRet)
  14761. {
  14762.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14763.     CHECK_IP(GetIP(), CVisioWindow, getShowGuides);
  14764.     if (NULL!=GetIP())
  14765.         hr= GetIP()->get_ShowGuides(lpRet);
  14766.     CHECK_HRESULT(hr, CVisioWindow, getShowGuides);
  14767.     return hr;
  14768. }
  14769.  
  14770.  
  14771. VW_INLINE HRESULT CVisioWindow::putShowGuides(VW_CONST short param01)
  14772. {
  14773.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14774.     CHECK_IP(GetIP(), CVisioWindow, putShowGuides);
  14775.     if (NULL!=GetIP())
  14776.         hr= GetIP()->put_ShowGuides(param01);
  14777.     CHECK_HRESULT(hr, CVisioWindow, putShowGuides);
  14778.     return hr;
  14779. }
  14780.  
  14781.  
  14782. VW_INLINE HRESULT CVisioWindow::getShowConnectPoints(short FAR *lpRet)
  14783. {
  14784.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14785.     CHECK_IP(GetIP(), CVisioWindow, getShowConnectPoints);
  14786.     if (NULL!=GetIP())
  14787.         hr= GetIP()->get_ShowConnectPoints(lpRet);
  14788.     CHECK_HRESULT(hr, CVisioWindow, getShowConnectPoints);
  14789.     return hr;
  14790. }
  14791.  
  14792.  
  14793. VW_INLINE HRESULT CVisioWindow::putShowConnectPoints(VW_CONST short param01)
  14794. {
  14795.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14796.     CHECK_IP(GetIP(), CVisioWindow, putShowConnectPoints);
  14797.     if (NULL!=GetIP())
  14798.         hr= GetIP()->put_ShowConnectPoints(param01);
  14799.     CHECK_HRESULT(hr, CVisioWindow, putShowConnectPoints);
  14800.     return hr;
  14801. }
  14802.  
  14803.  
  14804. VW_INLINE HRESULT CVisioWindow::getShowPageBreaks(short FAR *lpRet)
  14805. {
  14806.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14807.     CHECK_IP(GetIP(), CVisioWindow, getShowPageBreaks);
  14808.     if (NULL!=GetIP())
  14809.         hr= GetIP()->get_ShowPageBreaks(lpRet);
  14810.     CHECK_HRESULT(hr, CVisioWindow, getShowPageBreaks);
  14811.     return hr;
  14812. }
  14813.  
  14814.  
  14815. VW_INLINE HRESULT CVisioWindow::putShowPageBreaks(VW_CONST short param01)
  14816. {
  14817.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14818.     CHECK_IP(GetIP(), CVisioWindow, putShowPageBreaks);
  14819.     if (NULL!=GetIP())
  14820.         hr= GetIP()->put_ShowPageBreaks(param01);
  14821.     CHECK_HRESULT(hr, CVisioWindow, putShowPageBreaks);
  14822.     return hr;
  14823. }
  14824.  
  14825.  
  14826. VW_INLINE HRESULT CVisioWindow::getPage(VARIANT_HELPER_CLASS FAR &rWrap)
  14827. {
  14828.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14829.     VARIANT lpObj;
  14830.     VariantInit(&lpObj);
  14831.  
  14832.     CHECK_IP(GetIP(), CVisioWindow, getPage);
  14833.     if (NULL!=GetIP())
  14834.         hr= GetIP()->get_Page(&lpObj);
  14835.     CHECK_HRESULT(hr, CVisioWindow, getPage);
  14836.  
  14837. #ifdef NO_VARIANT_HELPER
  14838.     VariantCopy(&rWrap, &lpObj);
  14839. #else
  14840.     rWrap= lpObj;
  14841. #endif  //  NO_VARIANT_HELPER
  14842.  
  14843.     VariantClear(&lpObj);
  14844.  
  14845.     return hr;
  14846. }
  14847.  
  14848.  
  14849. VW_INLINE HRESULT CVisioWindow::putPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  14850. {
  14851.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14852.     CHECK_IP(GetIP(), CVisioWindow, putPage);
  14853.     if (NULL!=GetIP())
  14854.         hr= GetIP()->put_Page(param01);
  14855.     CHECK_HRESULT(hr, CVisioWindow, putPage);
  14856.     return hr;
  14857. }
  14858.  
  14859.  
  14860. VW_INLINE HRESULT CVisioWindow::DockedStencils(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  14861. {
  14862.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14863.     CHECK_IP(GetIP(), CVisioWindow, DockedStencils);
  14864.     if (NULL!=GetIP())
  14865.         hr= GetIP()->DockedStencils(NameArray);
  14866.     CHECK_HRESULT(hr, CVisioWindow, DockedStencils);
  14867.     return hr;
  14868. }
  14869.  
  14870.  
  14871. VW_INLINE HRESULT CVisioWindow::Master(VARIANT_HELPER_CLASS FAR &rWrap)
  14872. {
  14873.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14874.     VARIANT lpObj;
  14875.     VariantInit(&lpObj);
  14876.  
  14877.     CHECK_IP(GetIP(), CVisioWindow, Master);
  14878.     if (NULL!=GetIP())
  14879.         hr= GetIP()->get_Master(&lpObj);
  14880.     CHECK_HRESULT(hr, CVisioWindow, Master);
  14881.  
  14882. #ifdef NO_VARIANT_HELPER
  14883.     VariantCopy(&rWrap, &lpObj);
  14884. #else
  14885.     rWrap= lpObj;
  14886. #endif  //  NO_VARIANT_HELPER
  14887.  
  14888.     VariantClear(&lpObj);
  14889.  
  14890.     return hr;
  14891. }
  14892.  
  14893.  
  14894. VW_INLINE HRESULT CVisioWindow::getShowScrollBars(short FAR *lpRet)
  14895. {
  14896.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14897.     CHECK_IP(GetIP(), CVisioWindow, getShowScrollBars);
  14898.     if (NULL!=GetIP())
  14899.         hr= GetIP()->get_ShowScrollBars(lpRet);
  14900.     CHECK_HRESULT(hr, CVisioWindow, getShowScrollBars);
  14901.     return hr;
  14902. }
  14903.  
  14904.  
  14905. VW_INLINE HRESULT CVisioWindow::putShowScrollBars(VW_CONST short param01)
  14906. {
  14907.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14908.     CHECK_IP(GetIP(), CVisioWindow, putShowScrollBars);
  14909.     if (NULL!=GetIP())
  14910.         hr= GetIP()->put_ShowScrollBars(param01);
  14911.     CHECK_HRESULT(hr, CVisioWindow, putShowScrollBars);
  14912.     return hr;
  14913. }
  14914.  
  14915.  
  14916.  
  14917. //  ***************************************************************************
  14918. //  Implementation of class CVisioWindows
  14919.  
  14920. VW_INLINE HRESULT CVisioWindows::Application(CVisioApplication FAR &rWrap)
  14921. {
  14922.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14923.     IVApplication FAR *lpObj= NULL;
  14924.  
  14925.     CHECK_IP(GetIP(), CVisioWindows, Application);
  14926.     if (NULL!=GetIP())
  14927.         hr= GetIP()->get_Application(&lpObj);
  14928.     CHECK_HRESULT(hr, CVisioWindows, Application);
  14929.  
  14930.     rWrap= lpObj;
  14931.     if (NULL!=lpObj)
  14932.         lpObj->Release();
  14933.  
  14934.     return hr;
  14935. }
  14936.  
  14937.  
  14938. VW_INLINE HRESULT CVisioWindows::ObjectType(short FAR *lpRet)
  14939. {
  14940.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14941.     CHECK_IP(GetIP(), CVisioWindows, ObjectType);
  14942.     if (NULL!=GetIP())
  14943.         hr= GetIP()->get_ObjectType(lpRet);
  14944.     CHECK_HRESULT(hr, CVisioWindows, ObjectType);
  14945.     return hr;
  14946. }
  14947.  
  14948.  
  14949. VW_INLINE HRESULT CVisioWindows::Item(short Index, CVisioWindow FAR &rWrap)
  14950. {
  14951.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14952.     IVWindow FAR *lpObj= NULL;
  14953.  
  14954.     CHECK_IP(GetIP(), CVisioWindows, Item);
  14955.     if (NULL!=GetIP())
  14956.         hr= GetIP()->get_Item(Index, &lpObj);
  14957.     CHECK_HRESULT(hr, CVisioWindows, Item);
  14958.  
  14959.     rWrap= lpObj;
  14960.     if (NULL!=lpObj)
  14961.         lpObj->Release();
  14962.  
  14963.     return hr;
  14964. }
  14965.  
  14966.  
  14967. VW_INLINE HRESULT CVisioWindows::Count(short FAR *lpRet)
  14968. {
  14969.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14970.     CHECK_IP(GetIP(), CVisioWindows, Count);
  14971.     if (NULL!=GetIP())
  14972.         hr= GetIP()->get_Count(lpRet);
  14973.     CHECK_HRESULT(hr, CVisioWindows, Count);
  14974.     return hr;
  14975. }
  14976.  
  14977.  
  14978. VW_INLINE HRESULT CVisioWindows::Arrange()
  14979. {
  14980.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14981.     CHECK_IP(GetIP(), CVisioWindows, Arrange);
  14982.     if (NULL!=GetIP())
  14983.         hr= GetIP()->Arrange();
  14984.     CHECK_HRESULT(hr, CVisioWindows, Arrange);
  14985.     return hr;
  14986. }
  14987.  
  14988.  
  14989. VW_INLINE HRESULT CVisioWindows::EventList(CVisioEventList FAR &rWrap)
  14990. {
  14991.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14992.     IVEventList FAR *lpObj= NULL;
  14993.  
  14994.     CHECK_IP(GetIP(), CVisioWindows, EventList);
  14995.     if (NULL!=GetIP())
  14996.         hr= GetIP()->get_EventList(&lpObj);
  14997.     CHECK_HRESULT(hr, CVisioWindows, EventList);
  14998.  
  14999.     rWrap= lpObj;
  15000.     if (NULL!=lpObj)
  15001.         lpObj->Release();
  15002.  
  15003.     return hr;
  15004. }
  15005.  
  15006.  
  15007. VW_INLINE HRESULT CVisioWindows::PersistsEvents(short FAR *lpRet)
  15008. {
  15009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15010.     CHECK_IP(GetIP(), CVisioWindows, PersistsEvents);
  15011.     if (NULL!=GetIP())
  15012.         hr= GetIP()->get_PersistsEvents(lpRet);
  15013.     CHECK_HRESULT(hr, CVisioWindows, PersistsEvents);
  15014.     return hr;
  15015. }
  15016.  
  15017.  
  15018.  
  15019. //  ***************************************************************************
  15020. //  Implementation of class CVisioLayer
  15021.  
  15022. VW_INLINE HRESULT CVisioLayer::Application(CVisioApplication FAR &rWrap)
  15023. {
  15024.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15025.     IVApplication FAR *lpObj= NULL;
  15026.  
  15027.     CHECK_IP(GetIP(), CVisioLayer, Application);
  15028.     if (NULL!=GetIP())
  15029.         hr= GetIP()->get_Application(&lpObj);
  15030.     CHECK_HRESULT(hr, CVisioLayer, Application);
  15031.  
  15032.     rWrap= lpObj;
  15033.     if (NULL!=lpObj)
  15034.         lpObj->Release();
  15035.  
  15036.     return hr;
  15037. }
  15038.  
  15039.  
  15040. VW_INLINE HRESULT CVisioLayer::Document(CVisioDocument FAR &rWrap)
  15041. {
  15042.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15043.     IVDocument FAR *lpObj= NULL;
  15044.  
  15045.     CHECK_IP(GetIP(), CVisioLayer, Document);
  15046.     if (NULL!=GetIP())
  15047.         hr= GetIP()->get_Document(&lpObj);
  15048.     CHECK_HRESULT(hr, CVisioLayer, Document);
  15049.  
  15050.     rWrap= lpObj;
  15051.     if (NULL!=lpObj)
  15052.         lpObj->Release();
  15053.  
  15054.     return hr;
  15055. }
  15056.  
  15057.  
  15058. VW_INLINE HRESULT CVisioLayer::Page(CVisioPage FAR &rWrap)
  15059. {
  15060.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15061.     IVPage FAR *lpObj= NULL;
  15062.  
  15063.     CHECK_IP(GetIP(), CVisioLayer, Page);
  15064.     if (NULL!=GetIP())
  15065.         hr= GetIP()->get_Page(&lpObj);
  15066.     CHECK_HRESULT(hr, CVisioLayer, Page);
  15067.  
  15068.     rWrap= lpObj;
  15069.     if (NULL!=lpObj)
  15070.         lpObj->Release();
  15071.  
  15072.     return hr;
  15073. }
  15074.  
  15075.  
  15076. VW_INLINE HRESULT CVisioLayer::Master(CVisioMaster FAR &rWrap)
  15077. {
  15078.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15079.     IVMaster FAR *lpObj= NULL;
  15080.  
  15081.     CHECK_IP(GetIP(), CVisioLayer, Master);
  15082.     if (NULL!=GetIP())
  15083.         hr= GetIP()->get_Master(&lpObj);
  15084.     CHECK_HRESULT(hr, CVisioLayer, Master);
  15085.  
  15086.     rWrap= lpObj;
  15087.     if (NULL!=lpObj)
  15088.         lpObj->Release();
  15089.  
  15090.     return hr;
  15091. }
  15092.  
  15093.  
  15094. VW_INLINE HRESULT CVisioLayer::Index(short FAR *lpRet)
  15095. {
  15096.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15097.     CHECK_IP(GetIP(), CVisioLayer, Index);
  15098.     if (NULL!=GetIP())
  15099.         hr= GetIP()->get_Index(lpRet);
  15100.     CHECK_HRESULT(hr, CVisioLayer, Index);
  15101.     return hr;
  15102. }
  15103.  
  15104.  
  15105. VW_INLINE HRESULT CVisioLayer::Row(short FAR *lpRet)
  15106. {
  15107.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15108.     CHECK_IP(GetIP(), CVisioLayer, Row);
  15109.     if (NULL!=GetIP())
  15110.         hr= GetIP()->get_Row(lpRet);
  15111.     CHECK_HRESULT(hr, CVisioLayer, Row);
  15112.     return hr;
  15113. }
  15114.  
  15115.  
  15116. VW_INLINE HRESULT CVisioLayer::Add(CVisioShape FAR &SheetObject, short fPresMems)
  15117. {
  15118.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15119.     CHECK_IP(GetIP(), CVisioLayer, Add);
  15120.     if (NULL!=GetIP())
  15121.         hr= GetIP()->Add(SheetObject, fPresMems);
  15122.     CHECK_HRESULT(hr, CVisioLayer, Add);
  15123.     return hr;
  15124. }
  15125.  
  15126.  
  15127. VW_INLINE HRESULT CVisioLayer::Remove(CVisioShape FAR &SheetObject, short fPresMems)
  15128. {
  15129.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15130.     CHECK_IP(GetIP(), CVisioLayer, Remove);
  15131.     if (NULL!=GetIP())
  15132.         hr= GetIP()->Remove(SheetObject, fPresMems);
  15133.     CHECK_HRESULT(hr, CVisioLayer, Remove);
  15134.     return hr;
  15135. }
  15136.  
  15137.  
  15138. VW_INLINE HRESULT CVisioLayer::Delete(short fDeleteShapes)
  15139. {
  15140.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15141.     CHECK_IP(GetIP(), CVisioLayer, Delete);
  15142.     if (NULL!=GetIP())
  15143.         hr= GetIP()->Delete(fDeleteShapes);
  15144.     CHECK_HRESULT(hr, CVisioLayer, Delete);
  15145.     return hr;
  15146. }
  15147.  
  15148.  
  15149. VW_INLINE HRESULT CVisioLayer::getName(BSTR_HELPER_CLASS FAR &rWrap)
  15150. {
  15151.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15152.     BSTR lpObj= NULL;
  15153.  
  15154.     CHECK_IP(GetIP(), CVisioLayer, getName);
  15155.     if (NULL!=GetIP())
  15156.         hr= GetIP()->get_Name(&lpObj);
  15157.     CHECK_HRESULT(hr, CVisioLayer, getName);
  15158.  
  15159.     rWrap= lpObj;
  15160. #ifndef NO_BSTR_HELPER
  15161.     if (NULL!=lpObj)
  15162.         SysFreeString(lpObj);
  15163. #endif  //  NO_BSTR_HELPER
  15164.  
  15165.     return hr;
  15166. }
  15167.  
  15168.  
  15169. VW_INLINE HRESULT CVisioLayer::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15170. {
  15171.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15172.     CHECK_IP(GetIP(), CVisioLayer, putName);
  15173.     if (NULL!=GetIP())
  15174.         hr= GetIP()->put_Name(param01);
  15175.     CHECK_HRESULT(hr, CVisioLayer, putName);
  15176.     return hr;
  15177. }
  15178.  
  15179.  
  15180. VW_INLINE HRESULT CVisioLayer::CellsC(short Column, CVisioCell FAR &rWrap)
  15181. {
  15182.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15183.     IVCell FAR *lpObj= NULL;
  15184.  
  15185.     CHECK_IP(GetIP(), CVisioLayer, CellsC);
  15186.     if (NULL!=GetIP())
  15187.         hr= GetIP()->get_CellsC(Column, &lpObj);
  15188.     CHECK_HRESULT(hr, CVisioLayer, CellsC);
  15189.  
  15190.     rWrap= lpObj;
  15191.     if (NULL!=lpObj)
  15192.         lpObj->Release();
  15193.  
  15194.     return hr;
  15195. }
  15196.  
  15197.  
  15198. VW_INLINE HRESULT CVisioLayer::ObjectType(short FAR *lpRet)
  15199. {
  15200.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15201.     CHECK_IP(GetIP(), CVisioLayer, ObjectType);
  15202.     if (NULL!=GetIP())
  15203.         hr= GetIP()->get_ObjectType(lpRet);
  15204.     CHECK_HRESULT(hr, CVisioLayer, ObjectType);
  15205.     return hr;
  15206. }
  15207.  
  15208.  
  15209. VW_INLINE HRESULT CVisioLayer::Stat(short FAR *lpRet)
  15210. {
  15211.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15212.     CHECK_IP(GetIP(), CVisioLayer, Stat);
  15213.     if (NULL!=GetIP())
  15214.         hr= GetIP()->get_Stat(lpRet);
  15215.     CHECK_HRESULT(hr, CVisioLayer, Stat);
  15216.     return hr;
  15217. }
  15218.  
  15219.  
  15220. VW_INLINE HRESULT CVisioLayer::EventList(CVisioEventList FAR &rWrap)
  15221. {
  15222.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15223.     IVEventList FAR *lpObj= NULL;
  15224.  
  15225.     CHECK_IP(GetIP(), CVisioLayer, EventList);
  15226.     if (NULL!=GetIP())
  15227.         hr= GetIP()->get_EventList(&lpObj);
  15228.     CHECK_HRESULT(hr, CVisioLayer, EventList);
  15229.  
  15230.     rWrap= lpObj;
  15231.     if (NULL!=lpObj)
  15232.         lpObj->Release();
  15233.  
  15234.     return hr;
  15235. }
  15236.  
  15237.  
  15238. VW_INLINE HRESULT CVisioLayer::PersistsEvents(short FAR *lpRet)
  15239. {
  15240.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15241.     CHECK_IP(GetIP(), CVisioLayer, PersistsEvents);
  15242.     if (NULL!=GetIP())
  15243.         hr= GetIP()->get_PersistsEvents(lpRet);
  15244.     CHECK_HRESULT(hr, CVisioLayer, PersistsEvents);
  15245.     return hr;
  15246. }
  15247.  
  15248.  
  15249.  
  15250. //  ***************************************************************************
  15251. //  Implementation of class CVisioLayers
  15252.  
  15253. VW_INLINE HRESULT CVisioLayers::Application(CVisioApplication FAR &rWrap)
  15254. {
  15255.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15256.     IVApplication FAR *lpObj= NULL;
  15257.  
  15258.     CHECK_IP(GetIP(), CVisioLayers, Application);
  15259.     if (NULL!=GetIP())
  15260.         hr= GetIP()->get_Application(&lpObj);
  15261.     CHECK_HRESULT(hr, CVisioLayers, Application);
  15262.  
  15263.     rWrap= lpObj;
  15264.     if (NULL!=lpObj)
  15265.         lpObj->Release();
  15266.  
  15267.     return hr;
  15268. }
  15269.  
  15270.  
  15271. VW_INLINE HRESULT CVisioLayers::Document(CVisioDocument FAR &rWrap)
  15272. {
  15273.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15274.     IVDocument FAR *lpObj= NULL;
  15275.  
  15276.     CHECK_IP(GetIP(), CVisioLayers, Document);
  15277.     if (NULL!=GetIP())
  15278.         hr= GetIP()->get_Document(&lpObj);
  15279.     CHECK_HRESULT(hr, CVisioLayers, Document);
  15280.  
  15281.     rWrap= lpObj;
  15282.     if (NULL!=lpObj)
  15283.         lpObj->Release();
  15284.  
  15285.     return hr;
  15286. }
  15287.  
  15288.  
  15289. VW_INLINE HRESULT CVisioLayers::Page(CVisioPage FAR &rWrap)
  15290. {
  15291.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15292.     IVPage FAR *lpObj= NULL;
  15293.  
  15294.     CHECK_IP(GetIP(), CVisioLayers, Page);
  15295.     if (NULL!=GetIP())
  15296.         hr= GetIP()->get_Page(&lpObj);
  15297.     CHECK_HRESULT(hr, CVisioLayers, Page);
  15298.  
  15299.     rWrap= lpObj;
  15300.     if (NULL!=lpObj)
  15301.         lpObj->Release();
  15302.  
  15303.     return hr;
  15304. }
  15305.  
  15306.  
  15307. VW_INLINE HRESULT CVisioLayers::Master(CVisioMaster FAR &rWrap)
  15308. {
  15309.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15310.     IVMaster FAR *lpObj= NULL;
  15311.  
  15312.     CHECK_IP(GetIP(), CVisioLayers, Master);
  15313.     if (NULL!=GetIP())
  15314.         hr= GetIP()->get_Master(&lpObj);
  15315.     CHECK_HRESULT(hr, CVisioLayers, Master);
  15316.  
  15317.     rWrap= lpObj;
  15318.     if (NULL!=lpObj)
  15319.         lpObj->Release();
  15320.  
  15321.     return hr;
  15322. }
  15323.  
  15324.  
  15325. VW_INLINE HRESULT CVisioLayers::Count(short FAR *lpRet)
  15326. {
  15327.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15328.     CHECK_IP(GetIP(), CVisioLayers, Count);
  15329.     if (NULL!=GetIP())
  15330.         hr= GetIP()->get_Count(lpRet);
  15331.     CHECK_HRESULT(hr, CVisioLayers, Count);
  15332.     return hr;
  15333. }
  15334.  
  15335.  
  15336. VW_INLINE HRESULT CVisioLayers::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioLayer FAR &rWrap)
  15337. {
  15338.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15339.     IVLayer FAR *lpObj= NULL;
  15340.  
  15341.     CHECK_IP(GetIP(), CVisioLayers, Item);
  15342.     if (NULL!=GetIP())
  15343.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  15344.     CHECK_HRESULT(hr, CVisioLayers, Item);
  15345.  
  15346.     rWrap= lpObj;
  15347.     if (NULL!=lpObj)
  15348.         lpObj->Release();
  15349.  
  15350.     return hr;
  15351. }
  15352.  
  15353.  
  15354. VW_INLINE HRESULT CVisioLayers::Add(BSTR_HELPER_CLASS FAR &LayerName, CVisioLayer FAR &rWrap)
  15355. {
  15356.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15357.     IVLayer FAR *lpObj= NULL;
  15358.  
  15359.     CHECK_IP(GetIP(), CVisioLayers, Add);
  15360.     if (NULL!=GetIP())
  15361.         hr= GetIP()->Add(LayerName, &lpObj);
  15362.     CHECK_HRESULT(hr, CVisioLayers, Add);
  15363.  
  15364.     rWrap= lpObj;
  15365.     if (NULL!=lpObj)
  15366.         lpObj->Release();
  15367.  
  15368.     return hr;
  15369. }
  15370.  
  15371.  
  15372. VW_INLINE HRESULT CVisioLayers::ObjectType(short FAR *lpRet)
  15373. {
  15374.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15375.     CHECK_IP(GetIP(), CVisioLayers, ObjectType);
  15376.     if (NULL!=GetIP())
  15377.         hr= GetIP()->get_ObjectType(lpRet);
  15378.     CHECK_HRESULT(hr, CVisioLayers, ObjectType);
  15379.     return hr;
  15380. }
  15381.  
  15382.  
  15383. VW_INLINE HRESULT CVisioLayers::Stat(short FAR *lpRet)
  15384. {
  15385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15386.     CHECK_IP(GetIP(), CVisioLayers, Stat);
  15387.     if (NULL!=GetIP())
  15388.         hr= GetIP()->get_Stat(lpRet);
  15389.     CHECK_HRESULT(hr, CVisioLayers, Stat);
  15390.     return hr;
  15391. }
  15392.  
  15393.  
  15394. VW_INLINE HRESULT CVisioLayers::EventList(CVisioEventList FAR &rWrap)
  15395. {
  15396.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15397.     IVEventList FAR *lpObj= NULL;
  15398.  
  15399.     CHECK_IP(GetIP(), CVisioLayers, EventList);
  15400.     if (NULL!=GetIP())
  15401.         hr= GetIP()->get_EventList(&lpObj);
  15402.     CHECK_HRESULT(hr, CVisioLayers, EventList);
  15403.  
  15404.     rWrap= lpObj;
  15405.     if (NULL!=lpObj)
  15406.         lpObj->Release();
  15407.  
  15408.     return hr;
  15409. }
  15410.  
  15411.  
  15412. VW_INLINE HRESULT CVisioLayers::PersistsEvents(short FAR *lpRet)
  15413. {
  15414.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15415.     CHECK_IP(GetIP(), CVisioLayers, PersistsEvents);
  15416.     if (NULL!=GetIP())
  15417.         hr= GetIP()->get_PersistsEvents(lpRet);
  15418.     CHECK_HRESULT(hr, CVisioLayers, PersistsEvents);
  15419.     return hr;
  15420. }
  15421.  
  15422.  
  15423.  
  15424. //  ***************************************************************************
  15425. //  Implementation of class CVisioFont
  15426.  
  15427. VW_INLINE HRESULT CVisioFont::Application(CVisioApplication FAR &rWrap)
  15428. {
  15429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15430.     IVApplication FAR *lpObj= NULL;
  15431.  
  15432.     CHECK_IP(GetIP(), CVisioFont, Application);
  15433.     if (NULL!=GetIP())
  15434.         hr= GetIP()->get_Application(&lpObj);
  15435.     CHECK_HRESULT(hr, CVisioFont, Application);
  15436.  
  15437.     rWrap= lpObj;
  15438.     if (NULL!=lpObj)
  15439.         lpObj->Release();
  15440.  
  15441.     return hr;
  15442. }
  15443.  
  15444.  
  15445. VW_INLINE HRESULT CVisioFont::Document(CVisioDocument FAR &rWrap)
  15446. {
  15447.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15448.     IVDocument FAR *lpObj= NULL;
  15449.  
  15450.     CHECK_IP(GetIP(), CVisioFont, Document);
  15451.     if (NULL!=GetIP())
  15452.         hr= GetIP()->get_Document(&lpObj);
  15453.     CHECK_HRESULT(hr, CVisioFont, Document);
  15454.  
  15455.     rWrap= lpObj;
  15456.     if (NULL!=lpObj)
  15457.         lpObj->Release();
  15458.  
  15459.     return hr;
  15460. }
  15461.  
  15462.  
  15463. VW_INLINE HRESULT CVisioFont::Index(short FAR *lpRet)
  15464. {
  15465.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15466.     CHECK_IP(GetIP(), CVisioFont, Index);
  15467.     if (NULL!=GetIP())
  15468.         hr= GetIP()->get_Index(lpRet);
  15469.     CHECK_HRESULT(hr, CVisioFont, Index);
  15470.     return hr;
  15471. }
  15472.  
  15473.  
  15474. VW_INLINE HRESULT CVisioFont::Name(BSTR_HELPER_CLASS FAR &rWrap)
  15475. {
  15476.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15477.     BSTR lpObj= NULL;
  15478.  
  15479.     CHECK_IP(GetIP(), CVisioFont, Name);
  15480.     if (NULL!=GetIP())
  15481.         hr= GetIP()->get_Name(&lpObj);
  15482.     CHECK_HRESULT(hr, CVisioFont, Name);
  15483.  
  15484.     rWrap= lpObj;
  15485. #ifndef NO_BSTR_HELPER
  15486.     if (NULL!=lpObj)
  15487.         SysFreeString(lpObj);
  15488. #endif  //  NO_BSTR_HELPER
  15489.  
  15490.     return hr;
  15491. }
  15492.  
  15493.  
  15494. VW_INLINE HRESULT CVisioFont::ID(short FAR *lpRet)
  15495. {
  15496.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15497.     CHECK_IP(GetIP(), CVisioFont, ID);
  15498.     if (NULL!=GetIP())
  15499.         hr= GetIP()->get_ID(lpRet);
  15500.     CHECK_HRESULT(hr, CVisioFont, ID);
  15501.     return hr;
  15502. }
  15503.  
  15504.  
  15505. VW_INLINE HRESULT CVisioFont::Attributes(short FAR *lpRet)
  15506. {
  15507.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15508.     CHECK_IP(GetIP(), CVisioFont, Attributes);
  15509.     if (NULL!=GetIP())
  15510.         hr= GetIP()->get_Attributes(lpRet);
  15511.     CHECK_HRESULT(hr, CVisioFont, Attributes);
  15512.     return hr;
  15513. }
  15514.  
  15515.  
  15516. VW_INLINE HRESULT CVisioFont::CharSet(short FAR *lpRet)
  15517. {
  15518.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15519.     CHECK_IP(GetIP(), CVisioFont, CharSet);
  15520.     if (NULL!=GetIP())
  15521.         hr= GetIP()->get_CharSet(lpRet);
  15522.     CHECK_HRESULT(hr, CVisioFont, CharSet);
  15523.     return hr;
  15524. }
  15525.  
  15526.  
  15527. VW_INLINE HRESULT CVisioFont::PitchAndFamily(short FAR *lpRet)
  15528. {
  15529.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15530.     CHECK_IP(GetIP(), CVisioFont, PitchAndFamily);
  15531.     if (NULL!=GetIP())
  15532.         hr= GetIP()->get_PitchAndFamily(lpRet);
  15533.     CHECK_HRESULT(hr, CVisioFont, PitchAndFamily);
  15534.     return hr;
  15535. }
  15536.  
  15537.  
  15538. VW_INLINE HRESULT CVisioFont::ObjectType(short FAR *lpRet)
  15539. {
  15540.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15541.     CHECK_IP(GetIP(), CVisioFont, ObjectType);
  15542.     if (NULL!=GetIP())
  15543.         hr= GetIP()->get_ObjectType(lpRet);
  15544.     CHECK_HRESULT(hr, CVisioFont, ObjectType);
  15545.     return hr;
  15546. }
  15547.  
  15548.  
  15549. VW_INLINE HRESULT CVisioFont::Stat(short FAR *lpRet)
  15550. {
  15551.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15552.     CHECK_IP(GetIP(), CVisioFont, Stat);
  15553.     if (NULL!=GetIP())
  15554.         hr= GetIP()->get_Stat(lpRet);
  15555.     CHECK_HRESULT(hr, CVisioFont, Stat);
  15556.     return hr;
  15557. }
  15558.  
  15559.  
  15560.  
  15561. //  ***************************************************************************
  15562. //  Implementation of class CVisioFonts
  15563.  
  15564. VW_INLINE HRESULT CVisioFonts::Application(CVisioApplication FAR &rWrap)
  15565. {
  15566.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15567.     IVApplication FAR *lpObj= NULL;
  15568.  
  15569.     CHECK_IP(GetIP(), CVisioFonts, Application);
  15570.     if (NULL!=GetIP())
  15571.         hr= GetIP()->get_Application(&lpObj);
  15572.     CHECK_HRESULT(hr, CVisioFonts, Application);
  15573.  
  15574.     rWrap= lpObj;
  15575.     if (NULL!=lpObj)
  15576.         lpObj->Release();
  15577.  
  15578.     return hr;
  15579. }
  15580.  
  15581.  
  15582. VW_INLINE HRESULT CVisioFonts::Document(CVisioDocument FAR &rWrap)
  15583. {
  15584.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15585.     IVDocument FAR *lpObj= NULL;
  15586.  
  15587.     CHECK_IP(GetIP(), CVisioFonts, Document);
  15588.     if (NULL!=GetIP())
  15589.         hr= GetIP()->get_Document(&lpObj);
  15590.     CHECK_HRESULT(hr, CVisioFonts, Document);
  15591.  
  15592.     rWrap= lpObj;
  15593.     if (NULL!=lpObj)
  15594.         lpObj->Release();
  15595.  
  15596.     return hr;
  15597. }
  15598.  
  15599.  
  15600. VW_INLINE HRESULT CVisioFonts::Count(short FAR *lpRet)
  15601. {
  15602.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15603.     CHECK_IP(GetIP(), CVisioFonts, Count);
  15604.     if (NULL!=GetIP())
  15605.         hr= GetIP()->get_Count(lpRet);
  15606.     CHECK_HRESULT(hr, CVisioFonts, Count);
  15607.     return hr;
  15608. }
  15609.  
  15610.  
  15611. VW_INLINE HRESULT CVisioFonts::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioFont FAR &rWrap)
  15612. {
  15613.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15614.     IVFont FAR *lpObj= NULL;
  15615.  
  15616.     CHECK_IP(GetIP(), CVisioFonts, Item);
  15617.     if (NULL!=GetIP())
  15618.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  15619.     CHECK_HRESULT(hr, CVisioFonts, Item);
  15620.  
  15621.     rWrap= lpObj;
  15622.     if (NULL!=lpObj)
  15623.         lpObj->Release();
  15624.  
  15625.     return hr;
  15626. }
  15627.  
  15628.  
  15629. VW_INLINE HRESULT CVisioFonts::ItemFromID(long ObjectID, CVisioFont FAR &rWrap)
  15630. {
  15631.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15632.     IVFont FAR *lpObj= NULL;
  15633.  
  15634.     CHECK_IP(GetIP(), CVisioFonts, ItemFromID);
  15635.     if (NULL!=GetIP())
  15636.         hr= GetIP()->get_ItemFromID(ObjectID, &lpObj);
  15637.     CHECK_HRESULT(hr, CVisioFonts, ItemFromID);
  15638.  
  15639.     rWrap= lpObj;
  15640.     if (NULL!=lpObj)
  15641.         lpObj->Release();
  15642.  
  15643.     return hr;
  15644. }
  15645.  
  15646.  
  15647. VW_INLINE HRESULT CVisioFonts::ObjectType(short FAR *lpRet)
  15648. {
  15649.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15650.     CHECK_IP(GetIP(), CVisioFonts, ObjectType);
  15651.     if (NULL!=GetIP())
  15652.         hr= GetIP()->get_ObjectType(lpRet);
  15653.     CHECK_HRESULT(hr, CVisioFonts, ObjectType);
  15654.     return hr;
  15655. }
  15656.  
  15657.  
  15658. VW_INLINE HRESULT CVisioFonts::Stat(short FAR *lpRet)
  15659. {
  15660.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15661.     CHECK_IP(GetIP(), CVisioFonts, Stat);
  15662.     if (NULL!=GetIP())
  15663.         hr= GetIP()->get_Stat(lpRet);
  15664.     CHECK_HRESULT(hr, CVisioFonts, Stat);
  15665.     return hr;
  15666. }
  15667.  
  15668.  
  15669.  
  15670. //  ***************************************************************************
  15671. //  Implementation of class CVisioColor
  15672.  
  15673. VW_INLINE HRESULT CVisioColor::Application(CVisioApplication FAR &rWrap)
  15674. {
  15675.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15676.     IVApplication FAR *lpObj= NULL;
  15677.  
  15678.     CHECK_IP(GetIP(), CVisioColor, Application);
  15679.     if (NULL!=GetIP())
  15680.         hr= GetIP()->get_Application(&lpObj);
  15681.     CHECK_HRESULT(hr, CVisioColor, Application);
  15682.  
  15683.     rWrap= lpObj;
  15684.     if (NULL!=lpObj)
  15685.         lpObj->Release();
  15686.  
  15687.     return hr;
  15688. }
  15689.  
  15690.  
  15691. VW_INLINE HRESULT CVisioColor::Document(CVisioDocument FAR &rWrap)
  15692. {
  15693.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15694.     IVDocument FAR *lpObj= NULL;
  15695.  
  15696.     CHECK_IP(GetIP(), CVisioColor, Document);
  15697.     if (NULL!=GetIP())
  15698.         hr= GetIP()->get_Document(&lpObj);
  15699.     CHECK_HRESULT(hr, CVisioColor, Document);
  15700.  
  15701.     rWrap= lpObj;
  15702.     if (NULL!=lpObj)
  15703.         lpObj->Release();
  15704.  
  15705.     return hr;
  15706. }
  15707.  
  15708.  
  15709. VW_INLINE HRESULT CVisioColor::Index(short FAR *lpRet)
  15710. {
  15711.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15712.     CHECK_IP(GetIP(), CVisioColor, Index);
  15713.     if (NULL!=GetIP())
  15714.         hr= GetIP()->get_Index(lpRet);
  15715.     CHECK_HRESULT(hr, CVisioColor, Index);
  15716.     return hr;
  15717. }
  15718.  
  15719.  
  15720. VW_INLINE HRESULT CVisioColor::getRed(short FAR *lpRet)
  15721. {
  15722.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15723.     CHECK_IP(GetIP(), CVisioColor, getRed);
  15724.     if (NULL!=GetIP())
  15725.         hr= GetIP()->get_Red(lpRet);
  15726.     CHECK_HRESULT(hr, CVisioColor, getRed);
  15727.     return hr;
  15728. }
  15729.  
  15730.  
  15731. VW_INLINE HRESULT CVisioColor::putRed(VW_CONST short param01)
  15732. {
  15733.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15734.     CHECK_IP(GetIP(), CVisioColor, putRed);
  15735.     if (NULL!=GetIP())
  15736.         hr= GetIP()->put_Red(param01);
  15737.     CHECK_HRESULT(hr, CVisioColor, putRed);
  15738.     return hr;
  15739. }
  15740.  
  15741.  
  15742. VW_INLINE HRESULT CVisioColor::getGreen(short FAR *lpRet)
  15743. {
  15744.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15745.     CHECK_IP(GetIP(), CVisioColor, getGreen);
  15746.     if (NULL!=GetIP())
  15747.         hr= GetIP()->get_Green(lpRet);
  15748.     CHECK_HRESULT(hr, CVisioColor, getGreen);
  15749.     return hr;
  15750. }
  15751.  
  15752.  
  15753. VW_INLINE HRESULT CVisioColor::putGreen(VW_CONST short param01)
  15754. {
  15755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15756.     CHECK_IP(GetIP(), CVisioColor, putGreen);
  15757.     if (NULL!=GetIP())
  15758.         hr= GetIP()->put_Green(param01);
  15759.     CHECK_HRESULT(hr, CVisioColor, putGreen);
  15760.     return hr;
  15761. }
  15762.  
  15763.  
  15764. VW_INLINE HRESULT CVisioColor::getBlue(short FAR *lpRet)
  15765. {
  15766.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15767.     CHECK_IP(GetIP(), CVisioColor, getBlue);
  15768.     if (NULL!=GetIP())
  15769.         hr= GetIP()->get_Blue(lpRet);
  15770.     CHECK_HRESULT(hr, CVisioColor, getBlue);
  15771.     return hr;
  15772. }
  15773.  
  15774.  
  15775. VW_INLINE HRESULT CVisioColor::putBlue(VW_CONST short param01)
  15776. {
  15777.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15778.     CHECK_IP(GetIP(), CVisioColor, putBlue);
  15779.     if (NULL!=GetIP())
  15780.         hr= GetIP()->put_Blue(param01);
  15781.     CHECK_HRESULT(hr, CVisioColor, putBlue);
  15782.     return hr;
  15783. }
  15784.  
  15785.  
  15786. VW_INLINE HRESULT CVisioColor::getFlags(short FAR *lpRet)
  15787. {
  15788.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15789.     CHECK_IP(GetIP(), CVisioColor, getFlags);
  15790.     if (NULL!=GetIP())
  15791.         hr= GetIP()->get_Flags(lpRet);
  15792.     CHECK_HRESULT(hr, CVisioColor, getFlags);
  15793.     return hr;
  15794. }
  15795.  
  15796.  
  15797. VW_INLINE HRESULT CVisioColor::putFlags(VW_CONST short param01)
  15798. {
  15799.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15800.     CHECK_IP(GetIP(), CVisioColor, putFlags);
  15801.     if (NULL!=GetIP())
  15802.         hr= GetIP()->put_Flags(param01);
  15803.     CHECK_HRESULT(hr, CVisioColor, putFlags);
  15804.     return hr;
  15805. }
  15806.  
  15807.  
  15808. VW_INLINE HRESULT CVisioColor::getPaletteEntry(long FAR *lpRet)
  15809. {
  15810.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15811.     CHECK_IP(GetIP(), CVisioColor, getPaletteEntry);
  15812.     if (NULL!=GetIP())
  15813.         hr= GetIP()->get_PaletteEntry(lpRet);
  15814.     CHECK_HRESULT(hr, CVisioColor, getPaletteEntry);
  15815.     return hr;
  15816. }
  15817.  
  15818.  
  15819. VW_INLINE HRESULT CVisioColor::putPaletteEntry(VW_CONST long param01)
  15820. {
  15821.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15822.     CHECK_IP(GetIP(), CVisioColor, putPaletteEntry);
  15823.     if (NULL!=GetIP())
  15824.         hr= GetIP()->put_PaletteEntry(param01);
  15825.     CHECK_HRESULT(hr, CVisioColor, putPaletteEntry);
  15826.     return hr;
  15827. }
  15828.  
  15829.  
  15830. VW_INLINE HRESULT CVisioColor::ObjectType(short FAR *lpRet)
  15831. {
  15832.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15833.     CHECK_IP(GetIP(), CVisioColor, ObjectType);
  15834.     if (NULL!=GetIP())
  15835.         hr= GetIP()->get_ObjectType(lpRet);
  15836.     CHECK_HRESULT(hr, CVisioColor, ObjectType);
  15837.     return hr;
  15838. }
  15839.  
  15840.  
  15841. VW_INLINE HRESULT CVisioColor::Stat(short FAR *lpRet)
  15842. {
  15843.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15844.     CHECK_IP(GetIP(), CVisioColor, Stat);
  15845.     if (NULL!=GetIP())
  15846.         hr= GetIP()->get_Stat(lpRet);
  15847.     CHECK_HRESULT(hr, CVisioColor, Stat);
  15848.     return hr;
  15849. }
  15850.  
  15851.  
  15852.  
  15853. //  ***************************************************************************
  15854. //  Implementation of class CVisioColors
  15855.  
  15856. VW_INLINE HRESULT CVisioColors::Application(CVisioApplication FAR &rWrap)
  15857. {
  15858.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15859.     IVApplication FAR *lpObj= NULL;
  15860.  
  15861.     CHECK_IP(GetIP(), CVisioColors, Application);
  15862.     if (NULL!=GetIP())
  15863.         hr= GetIP()->get_Application(&lpObj);
  15864.     CHECK_HRESULT(hr, CVisioColors, Application);
  15865.  
  15866.     rWrap= lpObj;
  15867.     if (NULL!=lpObj)
  15868.         lpObj->Release();
  15869.  
  15870.     return hr;
  15871. }
  15872.  
  15873.  
  15874. VW_INLINE HRESULT CVisioColors::Document(CVisioDocument FAR &rWrap)
  15875. {
  15876.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15877.     IVDocument FAR *lpObj= NULL;
  15878.  
  15879.     CHECK_IP(GetIP(), CVisioColors, Document);
  15880.     if (NULL!=GetIP())
  15881.         hr= GetIP()->get_Document(&lpObj);
  15882.     CHECK_HRESULT(hr, CVisioColors, Document);
  15883.  
  15884.     rWrap= lpObj;
  15885.     if (NULL!=lpObj)
  15886.         lpObj->Release();
  15887.  
  15888.     return hr;
  15889. }
  15890.  
  15891.  
  15892. VW_INLINE HRESULT CVisioColors::Count(short FAR *lpRet)
  15893. {
  15894.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15895.     CHECK_IP(GetIP(), CVisioColors, Count);
  15896.     if (NULL!=GetIP())
  15897.         hr= GetIP()->get_Count(lpRet);
  15898.     CHECK_HRESULT(hr, CVisioColors, Count);
  15899.     return hr;
  15900. }
  15901.  
  15902.  
  15903. VW_INLINE HRESULT CVisioColors::Item(short Index, CVisioColor FAR &rWrap)
  15904. {
  15905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15906.     IVColor FAR *lpObj= NULL;
  15907.  
  15908.     CHECK_IP(GetIP(), CVisioColors, Item);
  15909.     if (NULL!=GetIP())
  15910.         hr= GetIP()->get_Item(Index, &lpObj);
  15911.     CHECK_HRESULT(hr, CVisioColors, Item);
  15912.  
  15913.     rWrap= lpObj;
  15914.     if (NULL!=lpObj)
  15915.         lpObj->Release();
  15916.  
  15917.     return hr;
  15918. }
  15919.  
  15920.  
  15921. VW_INLINE HRESULT CVisioColors::ObjectType(short FAR *lpRet)
  15922. {
  15923.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15924.     CHECK_IP(GetIP(), CVisioColors, ObjectType);
  15925.     if (NULL!=GetIP())
  15926.         hr= GetIP()->get_ObjectType(lpRet);
  15927.     CHECK_HRESULT(hr, CVisioColors, ObjectType);
  15928.     return hr;
  15929. }
  15930.  
  15931.  
  15932. VW_INLINE HRESULT CVisioColors::Stat(short FAR *lpRet)
  15933. {
  15934.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15935.     CHECK_IP(GetIP(), CVisioColors, Stat);
  15936.     if (NULL!=GetIP())
  15937.         hr= GetIP()->get_Stat(lpRet);
  15938.     CHECK_HRESULT(hr, CVisioColors, Stat);
  15939.     return hr;
  15940. }
  15941.  
  15942.  
  15943.  
  15944. //  ***************************************************************************
  15945. //  Implementation of class CVisioAddon
  15946.  
  15947. VW_INLINE HRESULT CVisioAddon::Application(CVisioApplication FAR &rWrap)
  15948. {
  15949.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15950.     IVApplication FAR *lpObj= NULL;
  15951.  
  15952.     CHECK_IP(GetIP(), CVisioAddon, Application);
  15953.     if (NULL!=GetIP())
  15954.         hr= GetIP()->get_Application(&lpObj);
  15955.     CHECK_HRESULT(hr, CVisioAddon, Application);
  15956.  
  15957.     rWrap= lpObj;
  15958.     if (NULL!=lpObj)
  15959.         lpObj->Release();
  15960.  
  15961.     return hr;
  15962. }
  15963.  
  15964.  
  15965. VW_INLINE HRESULT CVisioAddon::ObjectType(short FAR *lpRet)
  15966. {
  15967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15968.     CHECK_IP(GetIP(), CVisioAddon, ObjectType);
  15969.     if (NULL!=GetIP())
  15970.         hr= GetIP()->get_ObjectType(lpRet);
  15971.     CHECK_HRESULT(hr, CVisioAddon, ObjectType);
  15972.     return hr;
  15973. }
  15974.  
  15975.  
  15976. VW_INLINE HRESULT CVisioAddon::Name(BSTR_HELPER_CLASS FAR &rWrap)
  15977. {
  15978.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15979.     BSTR lpObj= NULL;
  15980.  
  15981.     CHECK_IP(GetIP(), CVisioAddon, Name);
  15982.     if (NULL!=GetIP())
  15983.         hr= GetIP()->get_Name(&lpObj);
  15984.     CHECK_HRESULT(hr, CVisioAddon, Name);
  15985.  
  15986.     rWrap= lpObj;
  15987. #ifndef NO_BSTR_HELPER
  15988.     if (NULL!=lpObj)
  15989.         SysFreeString(lpObj);
  15990. #endif  //  NO_BSTR_HELPER
  15991.  
  15992.     return hr;
  15993. }
  15994.  
  15995.  
  15996. VW_INLINE HRESULT CVisioAddon::Index(short FAR *lpRet)
  15997. {
  15998.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15999.     CHECK_IP(GetIP(), CVisioAddon, Index);
  16000.     if (NULL!=GetIP())
  16001.         hr= GetIP()->get_Index(lpRet);
  16002.     CHECK_HRESULT(hr, CVisioAddon, Index);
  16003.     return hr;
  16004. }
  16005.  
  16006.  
  16007. VW_INLINE HRESULT CVisioAddon::Enabled(short FAR *lpRet)
  16008. {
  16009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16010.     CHECK_IP(GetIP(), CVisioAddon, Enabled);
  16011.     if (NULL!=GetIP())
  16012.         hr= GetIP()->get_Enabled(lpRet);
  16013.     CHECK_HRESULT(hr, CVisioAddon, Enabled);
  16014.     return hr;
  16015. }
  16016.  
  16017.  
  16018. VW_INLINE HRESULT CVisioAddon::Run(BSTR_HELPER_CLASS FAR &ArgString)
  16019. {
  16020.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16021.     CHECK_IP(GetIP(), CVisioAddon, Run);
  16022.     if (NULL!=GetIP())
  16023.         hr= GetIP()->Run(ArgString);
  16024.     CHECK_HRESULT(hr, CVisioAddon, Run);
  16025.     return hr;
  16026. }
  16027.  
  16028.  
  16029.  
  16030. //  ***************************************************************************
  16031. //  Implementation of class CVisioAddons
  16032.  
  16033. VW_INLINE HRESULT CVisioAddons::Application(CVisioApplication FAR &rWrap)
  16034. {
  16035.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16036.     IVApplication FAR *lpObj= NULL;
  16037.  
  16038.     CHECK_IP(GetIP(), CVisioAddons, Application);
  16039.     if (NULL!=GetIP())
  16040.         hr= GetIP()->get_Application(&lpObj);
  16041.     CHECK_HRESULT(hr, CVisioAddons, Application);
  16042.  
  16043.     rWrap= lpObj;
  16044.     if (NULL!=lpObj)
  16045.         lpObj->Release();
  16046.  
  16047.     return hr;
  16048. }
  16049.  
  16050.  
  16051. VW_INLINE HRESULT CVisioAddons::ObjectType(short FAR *lpRet)
  16052. {
  16053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16054.     CHECK_IP(GetIP(), CVisioAddons, ObjectType);
  16055.     if (NULL!=GetIP())
  16056.         hr= GetIP()->get_ObjectType(lpRet);
  16057.     CHECK_HRESULT(hr, CVisioAddons, ObjectType);
  16058.     return hr;
  16059. }
  16060.  
  16061.  
  16062. VW_INLINE HRESULT CVisioAddons::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioAddon FAR &rWrap)
  16063. {
  16064.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16065.     IVAddon FAR *lpObj= NULL;
  16066.  
  16067.     CHECK_IP(GetIP(), CVisioAddons, Item);
  16068.     if (NULL!=GetIP())
  16069.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  16070.     CHECK_HRESULT(hr, CVisioAddons, Item);
  16071.  
  16072.     rWrap= lpObj;
  16073.     if (NULL!=lpObj)
  16074.         lpObj->Release();
  16075.  
  16076.     return hr;
  16077. }
  16078.  
  16079.  
  16080. VW_INLINE HRESULT CVisioAddons::Count(short FAR *lpRet)
  16081. {
  16082.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16083.     CHECK_IP(GetIP(), CVisioAddons, Count);
  16084.     if (NULL!=GetIP())
  16085.         hr= GetIP()->get_Count(lpRet);
  16086.     CHECK_HRESULT(hr, CVisioAddons, Count);
  16087.     return hr;
  16088. }
  16089.  
  16090.  
  16091. VW_INLINE HRESULT CVisioAddons::Add(BSTR_HELPER_CLASS FAR &FileName, CVisioAddon FAR &rWrap)
  16092. {
  16093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16094.     IVAddon FAR *lpObj= NULL;
  16095.  
  16096.     CHECK_IP(GetIP(), CVisioAddons, Add);
  16097.     if (NULL!=GetIP())
  16098.         hr= GetIP()->Add(FileName, &lpObj);
  16099.     CHECK_HRESULT(hr, CVisioAddons, Add);
  16100.  
  16101.     rWrap= lpObj;
  16102.     if (NULL!=lpObj)
  16103.         lpObj->Release();
  16104.  
  16105.     return hr;
  16106. }
  16107.  
  16108.  
  16109. VW_INLINE HRESULT CVisioAddons::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  16110. {
  16111.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16112.     CHECK_IP(GetIP(), CVisioAddons, GetNames);
  16113.     if (NULL!=GetIP())
  16114.         hr= GetIP()->GetNames(NameArray);
  16115.     CHECK_HRESULT(hr, CVisioAddons, GetNames);
  16116.     return hr;
  16117. }
  16118.  
  16119.  
  16120.  
  16121. //  ***************************************************************************
  16122. //  Implementation of class CVisioEvent
  16123.  
  16124. VW_INLINE HRESULT CVisioEvent::Application(CVisioApplication FAR &rWrap)
  16125. {
  16126.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16127.     IVApplication FAR *lpObj= NULL;
  16128.  
  16129.     CHECK_IP(GetIP(), CVisioEvent, Application);
  16130.     if (NULL!=GetIP())
  16131.         hr= GetIP()->get_Application(&lpObj);
  16132.     CHECK_HRESULT(hr, CVisioEvent, Application);
  16133.  
  16134.     rWrap= lpObj;
  16135.     if (NULL!=lpObj)
  16136.         lpObj->Release();
  16137.  
  16138.     return hr;
  16139. }
  16140.  
  16141.  
  16142. VW_INLINE HRESULT CVisioEvent::EventList(CVisioEventList FAR &rWrap)
  16143. {
  16144.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16145.     IVEventList FAR *lpObj= NULL;
  16146.  
  16147.     CHECK_IP(GetIP(), CVisioEvent, EventList);
  16148.     if (NULL!=GetIP())
  16149.         hr= GetIP()->get_EventList(&lpObj);
  16150.     CHECK_HRESULT(hr, CVisioEvent, EventList);
  16151.  
  16152.     rWrap= lpObj;
  16153.     if (NULL!=lpObj)
  16154.         lpObj->Release();
  16155.  
  16156.     return hr;
  16157. }
  16158.  
  16159.  
  16160. VW_INLINE HRESULT CVisioEvent::Index(short FAR *lpRet)
  16161. {
  16162.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16163.     CHECK_IP(GetIP(), CVisioEvent, Index);
  16164.     if (NULL!=GetIP())
  16165.         hr= GetIP()->get_Index(lpRet);
  16166.     CHECK_HRESULT(hr, CVisioEvent, Index);
  16167.     return hr;
  16168. }
  16169.  
  16170.  
  16171. VW_INLINE HRESULT CVisioEvent::getEvent(short FAR *lpRet)
  16172. {
  16173.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16174.     CHECK_IP(GetIP(), CVisioEvent, getEvent);
  16175.     if (NULL!=GetIP())
  16176.         hr= GetIP()->get_Event(lpRet);
  16177.     CHECK_HRESULT(hr, CVisioEvent, getEvent);
  16178.     return hr;
  16179. }
  16180.  
  16181.  
  16182. VW_INLINE HRESULT CVisioEvent::putEvent(VW_CONST short param01)
  16183. {
  16184.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16185.     CHECK_IP(GetIP(), CVisioEvent, putEvent);
  16186.     if (NULL!=GetIP())
  16187.         hr= GetIP()->put_Event(param01);
  16188.     CHECK_HRESULT(hr, CVisioEvent, putEvent);
  16189.     return hr;
  16190. }
  16191.  
  16192.  
  16193. VW_INLINE HRESULT CVisioEvent::getAction(short FAR *lpRet)
  16194. {
  16195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16196.     CHECK_IP(GetIP(), CVisioEvent, getAction);
  16197.     if (NULL!=GetIP())
  16198.         hr= GetIP()->get_Action(lpRet);
  16199.     CHECK_HRESULT(hr, CVisioEvent, getAction);
  16200.     return hr;
  16201. }
  16202.  
  16203.  
  16204. VW_INLINE HRESULT CVisioEvent::putAction(VW_CONST short param01)
  16205. {
  16206.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16207.     CHECK_IP(GetIP(), CVisioEvent, putAction);
  16208.     if (NULL!=GetIP())
  16209.         hr= GetIP()->put_Action(param01);
  16210.     CHECK_HRESULT(hr, CVisioEvent, putAction);
  16211.     return hr;
  16212. }
  16213.  
  16214.  
  16215. VW_INLINE HRESULT CVisioEvent::getTarget(BSTR_HELPER_CLASS FAR &rWrap)
  16216. {
  16217.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16218.     BSTR lpObj= NULL;
  16219.  
  16220.     CHECK_IP(GetIP(), CVisioEvent, getTarget);
  16221.     if (NULL!=GetIP())
  16222.         hr= GetIP()->get_Target(&lpObj);
  16223.     CHECK_HRESULT(hr, CVisioEvent, getTarget);
  16224.  
  16225.     rWrap= lpObj;
  16226. #ifndef NO_BSTR_HELPER
  16227.     if (NULL!=lpObj)
  16228.         SysFreeString(lpObj);
  16229. #endif  //  NO_BSTR_HELPER
  16230.  
  16231.     return hr;
  16232. }
  16233.  
  16234.  
  16235. VW_INLINE HRESULT CVisioEvent::putTarget(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16236. {
  16237.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16238.     CHECK_IP(GetIP(), CVisioEvent, putTarget);
  16239.     if (NULL!=GetIP())
  16240.         hr= GetIP()->put_Target(param01);
  16241.     CHECK_HRESULT(hr, CVisioEvent, putTarget);
  16242.     return hr;
  16243. }
  16244.  
  16245.  
  16246. VW_INLINE HRESULT CVisioEvent::getTargetArgs(BSTR_HELPER_CLASS FAR &rWrap)
  16247. {
  16248.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16249.     BSTR lpObj= NULL;
  16250.  
  16251.     CHECK_IP(GetIP(), CVisioEvent, getTargetArgs);
  16252.     if (NULL!=GetIP())
  16253.         hr= GetIP()->get_TargetArgs(&lpObj);
  16254.     CHECK_HRESULT(hr, CVisioEvent, getTargetArgs);
  16255.  
  16256.     rWrap= lpObj;
  16257. #ifndef NO_BSTR_HELPER
  16258.     if (NULL!=lpObj)
  16259.         SysFreeString(lpObj);
  16260. #endif  //  NO_BSTR_HELPER
  16261.  
  16262.     return hr;
  16263. }
  16264.  
  16265.  
  16266. VW_INLINE HRESULT CVisioEvent::putTargetArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16267. {
  16268.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16269.     CHECK_IP(GetIP(), CVisioEvent, putTargetArgs);
  16270.     if (NULL!=GetIP())
  16271.         hr= GetIP()->put_TargetArgs(param01);
  16272.     CHECK_HRESULT(hr, CVisioEvent, putTargetArgs);
  16273.     return hr;
  16274. }
  16275.  
  16276.  
  16277. VW_INLINE HRESULT CVisioEvent::Trigger(BSTR_HELPER_CLASS FAR &ContextString)
  16278. {
  16279.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16280.     CHECK_IP(GetIP(), CVisioEvent, Trigger);
  16281.     if (NULL!=GetIP())
  16282.         hr= GetIP()->Trigger(ContextString);
  16283.     CHECK_HRESULT(hr, CVisioEvent, Trigger);
  16284.     return hr;
  16285. }
  16286.  
  16287.  
  16288. VW_INLINE HRESULT CVisioEvent::Delete()
  16289. {
  16290.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16291.     CHECK_IP(GetIP(), CVisioEvent, Delete);
  16292.     if (NULL!=GetIP())
  16293.         hr= GetIP()->Delete();
  16294.     CHECK_HRESULT(hr, CVisioEvent, Delete);
  16295.     return hr;
  16296. }
  16297.  
  16298.  
  16299. VW_INLINE HRESULT CVisioEvent::ObjectType(short FAR *lpRet)
  16300. {
  16301.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16302.     CHECK_IP(GetIP(), CVisioEvent, ObjectType);
  16303.     if (NULL!=GetIP())
  16304.         hr= GetIP()->get_ObjectType(lpRet);
  16305.     CHECK_HRESULT(hr, CVisioEvent, ObjectType);
  16306.     return hr;
  16307. }
  16308.  
  16309.  
  16310. VW_INLINE HRESULT CVisioEvent::ID(long FAR *lpRet)
  16311. {
  16312.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16313.     CHECK_IP(GetIP(), CVisioEvent, ID);
  16314.     if (NULL!=GetIP())
  16315.         hr= GetIP()->get_ID(lpRet);
  16316.     CHECK_HRESULT(hr, CVisioEvent, ID);
  16317.     return hr;
  16318. }
  16319.  
  16320.  
  16321. VW_INLINE HRESULT CVisioEvent::getEnabled(short FAR *lpRet)
  16322. {
  16323.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16324.     CHECK_IP(GetIP(), CVisioEvent, getEnabled);
  16325.     if (NULL!=GetIP())
  16326.         hr= GetIP()->get_Enabled(lpRet);
  16327.     CHECK_HRESULT(hr, CVisioEvent, getEnabled);
  16328.     return hr;
  16329. }
  16330.  
  16331.  
  16332. VW_INLINE HRESULT CVisioEvent::putEnabled(VW_CONST short param01)
  16333. {
  16334.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16335.     CHECK_IP(GetIP(), CVisioEvent, putEnabled);
  16336.     if (NULL!=GetIP())
  16337.         hr= GetIP()->put_Enabled(param01);
  16338.     CHECK_HRESULT(hr, CVisioEvent, putEnabled);
  16339.     return hr;
  16340. }
  16341.  
  16342.  
  16343. VW_INLINE HRESULT CVisioEvent::Persistable(short FAR *lpRet)
  16344. {
  16345.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16346.     CHECK_IP(GetIP(), CVisioEvent, Persistable);
  16347.     if (NULL!=GetIP())
  16348.         hr= GetIP()->get_Persistable(lpRet);
  16349.     CHECK_HRESULT(hr, CVisioEvent, Persistable);
  16350.     return hr;
  16351. }
  16352.  
  16353.  
  16354. VW_INLINE HRESULT CVisioEvent::getPersistent(short FAR *lpRet)
  16355. {
  16356.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16357.     CHECK_IP(GetIP(), CVisioEvent, getPersistent);
  16358.     if (NULL!=GetIP())
  16359.         hr= GetIP()->get_Persistent(lpRet);
  16360.     CHECK_HRESULT(hr, CVisioEvent, getPersistent);
  16361.     return hr;
  16362. }
  16363.  
  16364.  
  16365. VW_INLINE HRESULT CVisioEvent::putPersistent(VW_CONST short param01)
  16366. {
  16367.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16368.     CHECK_IP(GetIP(), CVisioEvent, putPersistent);
  16369.     if (NULL!=GetIP())
  16370.         hr= GetIP()->put_Persistent(param01);
  16371.     CHECK_HRESULT(hr, CVisioEvent, putPersistent);
  16372.     return hr;
  16373. }
  16374.  
  16375.  
  16376.  
  16377. //  ***************************************************************************
  16378. //  Implementation of class CVisioEventList
  16379.  
  16380. VW_INLINE HRESULT CVisioEventList::Application(CVisioApplication FAR &rWrap)
  16381. {
  16382.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16383.     IVApplication FAR *lpObj= NULL;
  16384.  
  16385.     CHECK_IP(GetIP(), CVisioEventList, Application);
  16386.     if (NULL!=GetIP())
  16387.         hr= GetIP()->get_Application(&lpObj);
  16388.     CHECK_HRESULT(hr, CVisioEventList, Application);
  16389.  
  16390.     rWrap= lpObj;
  16391.     if (NULL!=lpObj)
  16392.         lpObj->Release();
  16393.  
  16394.     return hr;
  16395. }
  16396.  
  16397.  
  16398. VW_INLINE HRESULT CVisioEventList::ObjectType(short FAR *lpRet)
  16399. {
  16400.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16401.     CHECK_IP(GetIP(), CVisioEventList, ObjectType);
  16402.     if (NULL!=GetIP())
  16403.         hr= GetIP()->get_ObjectType(lpRet);
  16404.     CHECK_HRESULT(hr, CVisioEventList, ObjectType);
  16405.     return hr;
  16406. }
  16407.  
  16408.  
  16409. VW_INLINE HRESULT CVisioEventList::Item(short Index, CVisioEvent FAR &rWrap)
  16410. {
  16411.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16412.     IVEvent FAR *lpObj= NULL;
  16413.  
  16414.     CHECK_IP(GetIP(), CVisioEventList, Item);
  16415.     if (NULL!=GetIP())
  16416.         hr= GetIP()->get_Item(Index, &lpObj);
  16417.     CHECK_HRESULT(hr, CVisioEventList, Item);
  16418.  
  16419.     rWrap= lpObj;
  16420.     if (NULL!=lpObj)
  16421.         lpObj->Release();
  16422.  
  16423.     return hr;
  16424. }
  16425.  
  16426.  
  16427. VW_INLINE HRESULT CVisioEventList::Count(short FAR *lpRet)
  16428. {
  16429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16430.     CHECK_IP(GetIP(), CVisioEventList, Count);
  16431.     if (NULL!=GetIP())
  16432.         hr= GetIP()->get_Count(lpRet);
  16433.     CHECK_HRESULT(hr, CVisioEventList, Count);
  16434.     return hr;
  16435. }
  16436.  
  16437.  
  16438. VW_INLINE HRESULT CVisioEventList::Add(short EventCode, short Action, BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &TargetArgs, CVisioEvent FAR &rWrap)
  16439. {
  16440.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16441.     IVEvent FAR *lpObj= NULL;
  16442.  
  16443.     CHECK_IP(GetIP(), CVisioEventList, Add);
  16444.     if (NULL!=GetIP())
  16445.         hr= GetIP()->Add(EventCode, Action, Target, TargetArgs, &lpObj);
  16446.     CHECK_HRESULT(hr, CVisioEventList, Add);
  16447.  
  16448.     rWrap= lpObj;
  16449.     if (NULL!=lpObj)
  16450.         lpObj->Release();
  16451.  
  16452.     return hr;
  16453. }
  16454.  
  16455.  
  16456. VW_INLINE HRESULT CVisioEventList::AddAdvise(short EventCode, VARIANT_HELPER_CLASS FAR &SinkIUnkOrIDisp, BSTR_HELPER_CLASS FAR &IIDSink, BSTR_HELPER_CLASS FAR &TargetArgs, CVisioEvent FAR &rWrap)
  16457. {
  16458.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16459.     IVEvent FAR *lpObj= NULL;
  16460.  
  16461.     CHECK_IP(GetIP(), CVisioEventList, AddAdvise);
  16462.     if (NULL!=GetIP())
  16463.         hr= GetIP()->AddAdvise(EventCode, SinkIUnkOrIDisp, IIDSink, TargetArgs, &lpObj);
  16464.     CHECK_HRESULT(hr, CVisioEventList, AddAdvise);
  16465.  
  16466.     rWrap= lpObj;
  16467.     if (NULL!=lpObj)
  16468.         lpObj->Release();
  16469.  
  16470.     return hr;
  16471. }
  16472.  
  16473.  
  16474. VW_INLINE HRESULT CVisioEventList::ItemFromID(long ObjectID, CVisioEvent FAR &rWrap)
  16475. {
  16476.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16477.     IVEvent FAR *lpObj= NULL;
  16478.  
  16479.     CHECK_IP(GetIP(), CVisioEventList, ItemFromID);
  16480.     if (NULL!=GetIP())
  16481.         hr= GetIP()->get_ItemFromID(ObjectID, &lpObj);
  16482.     CHECK_HRESULT(hr, CVisioEventList, ItemFromID);
  16483.  
  16484.     rWrap= lpObj;
  16485.     if (NULL!=lpObj)
  16486.         lpObj->Release();
  16487.  
  16488.     return hr;
  16489. }
  16490.  
  16491.  
  16492.  
  16493. //  ***************************************************************************
  16494. //  Implementation of class CVisioGlobal
  16495.  
  16496. VW_INLINE HRESULT CVisioGlobal::Application(CVisioApplication FAR &rWrap)
  16497. {
  16498.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16499.     IVApplication FAR *lpObj= NULL;
  16500.  
  16501.     CHECK_IP(GetIP(), CVisioGlobal, Application);
  16502.     if (NULL!=GetIP())
  16503.         hr= GetIP()->get_Application(&lpObj);
  16504.     CHECK_HRESULT(hr, CVisioGlobal, Application);
  16505.  
  16506.     rWrap= lpObj;
  16507.     if (NULL!=lpObj)
  16508.         lpObj->Release();
  16509.  
  16510.     return hr;
  16511. }
  16512.  
  16513.  
  16514. VW_INLINE HRESULT CVisioGlobal::ActiveDocument(CVisioDocument FAR &rWrap)
  16515. {
  16516.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16517.     IVDocument FAR *lpObj= NULL;
  16518.  
  16519.     CHECK_IP(GetIP(), CVisioGlobal, ActiveDocument);
  16520.     if (NULL!=GetIP())
  16521.         hr= GetIP()->get_ActiveDocument(&lpObj);
  16522.     CHECK_HRESULT(hr, CVisioGlobal, ActiveDocument);
  16523.  
  16524.     rWrap= lpObj;
  16525.     if (NULL!=lpObj)
  16526.         lpObj->Release();
  16527.  
  16528.     return hr;
  16529. }
  16530.  
  16531.  
  16532. VW_INLINE HRESULT CVisioGlobal::ActivePage(CVisioPage FAR &rWrap)
  16533. {
  16534.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16535.     IVPage FAR *lpObj= NULL;
  16536.  
  16537.     CHECK_IP(GetIP(), CVisioGlobal, ActivePage);
  16538.     if (NULL!=GetIP())
  16539.         hr= GetIP()->get_ActivePage(&lpObj);
  16540.     CHECK_HRESULT(hr, CVisioGlobal, ActivePage);
  16541.  
  16542.     rWrap= lpObj;
  16543.     if (NULL!=lpObj)
  16544.         lpObj->Release();
  16545.  
  16546.     return hr;
  16547. }
  16548.  
  16549.  
  16550. VW_INLINE HRESULT CVisioGlobal::ActiveWindow(CVisioWindow FAR &rWrap)
  16551. {
  16552.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16553.     IVWindow FAR *lpObj= NULL;
  16554.  
  16555.     CHECK_IP(GetIP(), CVisioGlobal, ActiveWindow);
  16556.     if (NULL!=GetIP())
  16557.         hr= GetIP()->get_ActiveWindow(&lpObj);
  16558.     CHECK_HRESULT(hr, CVisioGlobal, ActiveWindow);
  16559.  
  16560.     rWrap= lpObj;
  16561.     if (NULL!=lpObj)
  16562.         lpObj->Release();
  16563.  
  16564.     return hr;
  16565. }
  16566.  
  16567.  
  16568. VW_INLINE HRESULT CVisioGlobal::Documents(CVisioDocuments FAR &rWrap)
  16569. {
  16570.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16571.     IVDocuments FAR *lpObj= NULL;
  16572.  
  16573.     CHECK_IP(GetIP(), CVisioGlobal, Documents);
  16574.     if (NULL!=GetIP())
  16575.         hr= GetIP()->get_Documents(&lpObj);
  16576.     CHECK_HRESULT(hr, CVisioGlobal, Documents);
  16577.  
  16578.     rWrap= lpObj;
  16579.     if (NULL!=lpObj)
  16580.         lpObj->Release();
  16581.  
  16582.     return hr;
  16583. }
  16584.  
  16585.  
  16586. VW_INLINE HRESULT CVisioGlobal::Windows(CVisioWindows FAR &rWrap)
  16587. {
  16588.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16589.     IVWindows FAR *lpObj= NULL;
  16590.  
  16591.     CHECK_IP(GetIP(), CVisioGlobal, Windows);
  16592.     if (NULL!=GetIP())
  16593.         hr= GetIP()->get_Windows(&lpObj);
  16594.     CHECK_HRESULT(hr, CVisioGlobal, Windows);
  16595.  
  16596.     rWrap= lpObj;
  16597.     if (NULL!=lpObj)
  16598.         lpObj->Release();
  16599.  
  16600.     return hr;
  16601. }
  16602.  
  16603.  
  16604. VW_INLINE HRESULT CVisioGlobal::Addons(CVisioAddons FAR &rWrap)
  16605. {
  16606.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16607.     IVAddons FAR *lpObj= NULL;
  16608.  
  16609.     CHECK_IP(GetIP(), CVisioGlobal, Addons);
  16610.     if (NULL!=GetIP())
  16611.         hr= GetIP()->get_Addons(&lpObj);
  16612.     CHECK_HRESULT(hr, CVisioGlobal, Addons);
  16613.  
  16614.     rWrap= lpObj;
  16615.     if (NULL!=lpObj)
  16616.         lpObj->Release();
  16617.  
  16618.     return hr;
  16619. }
  16620.  
  16621.  
  16622. VW_INLINE HRESULT CVisioGlobal::Vbe(IDispatch FAR *FAR *lpRet)
  16623. {
  16624.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16625.     CHECK_IP(GetIP(), CVisioGlobal, Vbe);
  16626.     if (NULL!=GetIP())
  16627.         hr= GetIP()->get_Vbe(lpRet);
  16628.     CHECK_HRESULT(hr, CVisioGlobal, Vbe);
  16629.     return hr;
  16630. }
  16631.  
  16632.  
  16633.  
  16634. //  ***************************************************************************
  16635. //  Implementation of class CVisioEDocument
  16636.  
  16637.  
  16638. //  ***************************************************************************
  16639. //  Implementation of class CVisioEApplication
  16640.  
  16641.  
  16642. //  ***************************************************************************
  16643. //  Implementation of class CVisioEWindows
  16644.  
  16645.  
  16646. //  ***************************************************************************
  16647. //  Implementation of class CVisioEWindow
  16648.  
  16649.  
  16650. //  ***************************************************************************
  16651. //  Implementation of class CVisioEDocuments
  16652.  
  16653.  
  16654. //  ***************************************************************************
  16655. //  Implementation of class CVisioEStyles
  16656.  
  16657.  
  16658. //  ***************************************************************************
  16659. //  Implementation of class CVisioEStyle
  16660.  
  16661.  
  16662. //  ***************************************************************************
  16663. //  Implementation of class CVisioEMasters
  16664.  
  16665.  
  16666. //  ***************************************************************************
  16667. //  Implementation of class CVisioEMaster
  16668.  
  16669.  
  16670. //  ***************************************************************************
  16671. //  Implementation of class CVisioEPages
  16672.  
  16673.  
  16674. //  ***************************************************************************
  16675. //  Implementation of class CVisioEPage
  16676.  
  16677.  
  16678. //  ***************************************************************************
  16679. //  Implementation of class CVisioEShape
  16680.  
  16681.  
  16682. //  ***************************************************************************
  16683. //  Implementation of class CVisioECharacters
  16684.  
  16685.  
  16686. //  ***************************************************************************
  16687. //  Implementation of class CVisioECell
  16688.  
  16689.  
  16690. //  ***************************************************************************
  16691. //  Implementation of class CVisioMenuItem
  16692.  
  16693. VW_INLINE HRESULT CVisioMenuItem::Delete()
  16694. {
  16695.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16696.     CHECK_IP(GetIP(), CVisioMenuItem, Delete);
  16697.     if (NULL!=GetIP())
  16698.         hr= GetIP()->Delete();
  16699.     CHECK_HRESULT(hr, CVisioMenuItem, Delete);
  16700.     return hr;
  16701. }
  16702.  
  16703.  
  16704. VW_INLINE HRESULT CVisioMenuItem::Default(BSTR_HELPER_CLASS FAR &rWrap)
  16705. {
  16706.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16707.     BSTR lpObj= NULL;
  16708.  
  16709.     CHECK_IP(GetIP(), CVisioMenuItem, Default);
  16710.     if (NULL!=GetIP())
  16711.         hr= GetIP()->get_Default(&lpObj);
  16712.     CHECK_HRESULT(hr, CVisioMenuItem, Default);
  16713.  
  16714.     rWrap= lpObj;
  16715. #ifndef NO_BSTR_HELPER
  16716.     if (NULL!=lpObj)
  16717.         SysFreeString(lpObj);
  16718. #endif  //  NO_BSTR_HELPER
  16719.  
  16720.     return hr;
  16721. }
  16722.  
  16723.  
  16724. VW_INLINE HRESULT CVisioMenuItem::Index(long FAR *lpRet)
  16725. {
  16726.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16727.     CHECK_IP(GetIP(), CVisioMenuItem, Index);
  16728.     if (NULL!=GetIP())
  16729.         hr= GetIP()->get_Index(lpRet);
  16730.     CHECK_HRESULT(hr, CVisioMenuItem, Index);
  16731.     return hr;
  16732. }
  16733.  
  16734.  
  16735. VW_INLINE HRESULT CVisioMenuItem::MenuItems(CVisioMenuItems FAR &rWrap)
  16736. {
  16737.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16738.     IVMenuItems FAR *lpObj= NULL;
  16739.  
  16740.     CHECK_IP(GetIP(), CVisioMenuItem, MenuItems);
  16741.     if (NULL!=GetIP())
  16742.         hr= GetIP()->get_MenuItems(&lpObj);
  16743.     CHECK_HRESULT(hr, CVisioMenuItem, MenuItems);
  16744.  
  16745.     rWrap= lpObj;
  16746.     if (NULL!=lpObj)
  16747.         lpObj->Release();
  16748.  
  16749.     return hr;
  16750. }
  16751.  
  16752.  
  16753. VW_INLINE HRESULT CVisioMenuItem::Parent(CVisioMenuItems FAR &rWrap)
  16754. {
  16755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16756.     IVMenuItems FAR *lpObj= NULL;
  16757.  
  16758.     CHECK_IP(GetIP(), CVisioMenuItem, Parent);
  16759.     if (NULL!=GetIP())
  16760.         hr= GetIP()->get_Parent(&lpObj);
  16761.     CHECK_HRESULT(hr, CVisioMenuItem, Parent);
  16762.  
  16763.     rWrap= lpObj;
  16764.     if (NULL!=lpObj)
  16765.         lpObj->Release();
  16766.  
  16767.     return hr;
  16768. }
  16769.  
  16770.  
  16771. VW_INLINE HRESULT CVisioMenuItem::putCmdNum(VW_CONST short param01)
  16772. {
  16773.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16774.     CHECK_IP(GetIP(), CVisioMenuItem, putCmdNum);
  16775.     if (NULL!=GetIP())
  16776.         hr= GetIP()->put_CmdNum(param01);
  16777.     CHECK_HRESULT(hr, CVisioMenuItem, putCmdNum);
  16778.     return hr;
  16779. }
  16780.  
  16781.  
  16782. VW_INLINE HRESULT CVisioMenuItem::getCmdNum(short FAR *lpRet)
  16783. {
  16784.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16785.     CHECK_IP(GetIP(), CVisioMenuItem, getCmdNum);
  16786.     if (NULL!=GetIP())
  16787.         hr= GetIP()->get_CmdNum(lpRet);
  16788.     CHECK_HRESULT(hr, CVisioMenuItem, getCmdNum);
  16789.     return hr;
  16790. }
  16791.  
  16792.  
  16793. VW_INLINE HRESULT CVisioMenuItem::putHelpContextID(VW_CONST short param01)
  16794. {
  16795.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16796.     CHECK_IP(GetIP(), CVisioMenuItem, putHelpContextID);
  16797.     if (NULL!=GetIP())
  16798.         hr= GetIP()->put_HelpContextID(param01);
  16799.     CHECK_HRESULT(hr, CVisioMenuItem, putHelpContextID);
  16800.     return hr;
  16801. }
  16802.  
  16803.  
  16804. VW_INLINE HRESULT CVisioMenuItem::getHelpContextID(short FAR *lpRet)
  16805. {
  16806.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16807.     CHECK_IP(GetIP(), CVisioMenuItem, getHelpContextID);
  16808.     if (NULL!=GetIP())
  16809.         hr= GetIP()->get_HelpContextID(lpRet);
  16810.     CHECK_HRESULT(hr, CVisioMenuItem, getHelpContextID);
  16811.     return hr;
  16812. }
  16813.  
  16814.  
  16815. VW_INLINE HRESULT CVisioMenuItem::IsSeparator(short FAR *lpRet)
  16816. {
  16817.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16818.     CHECK_IP(GetIP(), CVisioMenuItem, IsSeparator);
  16819.     if (NULL!=GetIP())
  16820.         hr= GetIP()->get_IsSeparator(lpRet);
  16821.     CHECK_HRESULT(hr, CVisioMenuItem, IsSeparator);
  16822.     return hr;
  16823. }
  16824.  
  16825.  
  16826. VW_INLINE HRESULT CVisioMenuItem::IsHierarchical(short FAR *lpRet)
  16827. {
  16828.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16829.     CHECK_IP(GetIP(), CVisioMenuItem, IsHierarchical);
  16830.     if (NULL!=GetIP())
  16831.         hr= GetIP()->get_IsHierarchical(lpRet);
  16832.     CHECK_HRESULT(hr, CVisioMenuItem, IsHierarchical);
  16833.     return hr;
  16834. }
  16835.  
  16836.  
  16837. VW_INLINE HRESULT CVisioMenuItem::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16838. {
  16839.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16840.     CHECK_IP(GetIP(), CVisioMenuItem, putCaption);
  16841.     if (NULL!=GetIP())
  16842.         hr= GetIP()->put_Caption(param01);
  16843.     CHECK_HRESULT(hr, CVisioMenuItem, putCaption);
  16844.     return hr;
  16845. }
  16846.  
  16847.  
  16848. VW_INLINE HRESULT CVisioMenuItem::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  16849. {
  16850.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16851.     BSTR lpObj= NULL;
  16852.  
  16853.     CHECK_IP(GetIP(), CVisioMenuItem, getCaption);
  16854.     if (NULL!=GetIP())
  16855.         hr= GetIP()->get_Caption(&lpObj);
  16856.     CHECK_HRESULT(hr, CVisioMenuItem, getCaption);
  16857.  
  16858.     rWrap= lpObj;
  16859. #ifndef NO_BSTR_HELPER
  16860.     if (NULL!=lpObj)
  16861.         SysFreeString(lpObj);
  16862. #endif  //  NO_BSTR_HELPER
  16863.  
  16864.     return hr;
  16865. }
  16866.  
  16867.  
  16868. VW_INLINE HRESULT CVisioMenuItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16869. {
  16870.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16871.     CHECK_IP(GetIP(), CVisioMenuItem, putActionText);
  16872.     if (NULL!=GetIP())
  16873.         hr= GetIP()->put_ActionText(param01);
  16874.     CHECK_HRESULT(hr, CVisioMenuItem, putActionText);
  16875.     return hr;
  16876. }
  16877.  
  16878.  
  16879. VW_INLINE HRESULT CVisioMenuItem::getActionText(BSTR_HELPER_CLASS FAR &rWrap)
  16880. {
  16881.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16882.     BSTR lpObj= NULL;
  16883.  
  16884.     CHECK_IP(GetIP(), CVisioMenuItem, getActionText);
  16885.     if (NULL!=GetIP())
  16886.         hr= GetIP()->get_ActionText(&lpObj);
  16887.     CHECK_HRESULT(hr, CVisioMenuItem, getActionText);
  16888.  
  16889.     rWrap= lpObj;
  16890. #ifndef NO_BSTR_HELPER
  16891.     if (NULL!=lpObj)
  16892.         SysFreeString(lpObj);
  16893. #endif  //  NO_BSTR_HELPER
  16894.  
  16895.     return hr;
  16896. }
  16897.  
  16898.  
  16899. VW_INLINE HRESULT CVisioMenuItem::putMiniHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16900. {
  16901.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16902.     CHECK_IP(GetIP(), CVisioMenuItem, putMiniHelp);
  16903.     if (NULL!=GetIP())
  16904.         hr= GetIP()->put_MiniHelp(param01);
  16905.     CHECK_HRESULT(hr, CVisioMenuItem, putMiniHelp);
  16906.     return hr;
  16907. }
  16908.  
  16909.  
  16910. VW_INLINE HRESULT CVisioMenuItem::getMiniHelp(BSTR_HELPER_CLASS FAR &rWrap)
  16911. {
  16912.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16913.     BSTR lpObj= NULL;
  16914.  
  16915.     CHECK_IP(GetIP(), CVisioMenuItem, getMiniHelp);
  16916.     if (NULL!=GetIP())
  16917.         hr= GetIP()->get_MiniHelp(&lpObj);
  16918.     CHECK_HRESULT(hr, CVisioMenuItem, getMiniHelp);
  16919.  
  16920.     rWrap= lpObj;
  16921. #ifndef NO_BSTR_HELPER
  16922.     if (NULL!=lpObj)
  16923.         SysFreeString(lpObj);
  16924. #endif  //  NO_BSTR_HELPER
  16925.  
  16926.     return hr;
  16927. }
  16928.  
  16929.  
  16930. VW_INLINE HRESULT CVisioMenuItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16931. {
  16932.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16933.     CHECK_IP(GetIP(), CVisioMenuItem, putAddOnName);
  16934.     if (NULL!=GetIP())
  16935.         hr= GetIP()->put_AddOnName(param01);
  16936.     CHECK_HRESULT(hr, CVisioMenuItem, putAddOnName);
  16937.     return hr;
  16938. }
  16939.  
  16940.  
  16941. VW_INLINE HRESULT CVisioMenuItem::getAddOnName(BSTR_HELPER_CLASS FAR &rWrap)
  16942. {
  16943.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16944.     BSTR lpObj= NULL;
  16945.  
  16946.     CHECK_IP(GetIP(), CVisioMenuItem, getAddOnName);
  16947.     if (NULL!=GetIP())
  16948.         hr= GetIP()->get_AddOnName(&lpObj);
  16949.     CHECK_HRESULT(hr, CVisioMenuItem, getAddOnName);
  16950.  
  16951.     rWrap= lpObj;
  16952. #ifndef NO_BSTR_HELPER
  16953.     if (NULL!=lpObj)
  16954.         SysFreeString(lpObj);
  16955. #endif  //  NO_BSTR_HELPER
  16956.  
  16957.     return hr;
  16958. }
  16959.  
  16960.  
  16961. VW_INLINE HRESULT CVisioMenuItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16962. {
  16963.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16964.     CHECK_IP(GetIP(), CVisioMenuItem, putAddOnArgs);
  16965.     if (NULL!=GetIP())
  16966.         hr= GetIP()->put_AddOnArgs(param01);
  16967.     CHECK_HRESULT(hr, CVisioMenuItem, putAddOnArgs);
  16968.     return hr;
  16969. }
  16970.  
  16971.  
  16972. VW_INLINE HRESULT CVisioMenuItem::getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap)
  16973. {
  16974.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16975.     BSTR lpObj= NULL;
  16976.  
  16977.     CHECK_IP(GetIP(), CVisioMenuItem, getAddOnArgs);
  16978.     if (NULL!=GetIP())
  16979.         hr= GetIP()->get_AddOnArgs(&lpObj);
  16980.     CHECK_HRESULT(hr, CVisioMenuItem, getAddOnArgs);
  16981.  
  16982.     rWrap= lpObj;
  16983. #ifndef NO_BSTR_HELPER
  16984.     if (NULL!=lpObj)
  16985.         SysFreeString(lpObj);
  16986. #endif  //  NO_BSTR_HELPER
  16987.  
  16988.     return hr;
  16989. }
  16990.  
  16991.  
  16992. VW_INLINE HRESULT CVisioMenuItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16993. {
  16994.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16995.     CHECK_IP(GetIP(), CVisioMenuItem, putHelpFile);
  16996.     if (NULL!=GetIP())
  16997.         hr= GetIP()->put_HelpFile(param01);
  16998.     CHECK_HRESULT(hr, CVisioMenuItem, putHelpFile);
  16999.     return hr;
  17000. }
  17001.  
  17002.  
  17003. VW_INLINE HRESULT CVisioMenuItem::getHelpFile(BSTR_HELPER_CLASS FAR &rWrap)
  17004. {
  17005.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17006.     BSTR lpObj= NULL;
  17007.  
  17008.     CHECK_IP(GetIP(), CVisioMenuItem, getHelpFile);
  17009.     if (NULL!=GetIP())
  17010.         hr= GetIP()->get_HelpFile(&lpObj);
  17011.     CHECK_HRESULT(hr, CVisioMenuItem, getHelpFile);
  17012.  
  17013.     rWrap= lpObj;
  17014. #ifndef NO_BSTR_HELPER
  17015.     if (NULL!=lpObj)
  17016.         SysFreeString(lpObj);
  17017. #endif  //  NO_BSTR_HELPER
  17018.  
  17019.     return hr;
  17020. }
  17021.  
  17022.  
  17023.  
  17024. //  ***************************************************************************
  17025. //  Implementation of class CVisioIEnumVMenuItem
  17026.  
  17027.  
  17028. //  ***************************************************************************
  17029. //  Implementation of class CVisioMenuItems
  17030.  
  17031. VW_INLINE HRESULT CVisioMenuItems::_NewEnum(IUnknown FAR *FAR *lpRet)
  17032. {
  17033.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17034.     CHECK_IP(GetIP(), CVisioMenuItems, _NewEnum);
  17035.     if (NULL!=GetIP())
  17036.         hr= GetIP()->get__NewEnum(lpRet);
  17037.     CHECK_HRESULT(hr, CVisioMenuItems, _NewEnum);
  17038.     return hr;
  17039. }
  17040.  
  17041.  
  17042. VW_INLINE HRESULT CVisioMenuItems::Item(long lIndex, CVisioMenuItem FAR &rWrap)
  17043. {
  17044.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17045.     IVMenuItem FAR *lpObj= NULL;
  17046.  
  17047.     CHECK_IP(GetIP(), CVisioMenuItems, Item);
  17048.     if (NULL!=GetIP())
  17049.         hr= GetIP()->get_Item(lIndex, &lpObj);
  17050.     CHECK_HRESULT(hr, CVisioMenuItems, Item);
  17051.  
  17052.     rWrap= lpObj;
  17053.     if (NULL!=lpObj)
  17054.         lpObj->Release();
  17055.  
  17056.     return hr;
  17057. }
  17058.  
  17059.  
  17060. VW_INLINE HRESULT CVisioMenuItems::Add(CVisioMenuItem FAR &rWrap)
  17061. {
  17062.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17063.     IVMenuItem FAR *lpObj= NULL;
  17064.  
  17065.     CHECK_IP(GetIP(), CVisioMenuItems, Add);
  17066.     if (NULL!=GetIP())
  17067.         hr= GetIP()->Add(&lpObj);
  17068.     CHECK_HRESULT(hr, CVisioMenuItems, Add);
  17069.  
  17070.     rWrap= lpObj;
  17071.     if (NULL!=lpObj)
  17072.         lpObj->Release();
  17073.  
  17074.     return hr;
  17075. }
  17076.  
  17077.  
  17078. VW_INLINE HRESULT CVisioMenuItems::AddAt(long lIndex, CVisioMenuItem FAR &rWrap)
  17079. {
  17080.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17081.     IVMenuItem FAR *lpObj= NULL;
  17082.  
  17083.     CHECK_IP(GetIP(), CVisioMenuItems, AddAt);
  17084.     if (NULL!=GetIP())
  17085.         hr= GetIP()->AddAt(lIndex, &lpObj);
  17086.     CHECK_HRESULT(hr, CVisioMenuItems, AddAt);
  17087.  
  17088.     rWrap= lpObj;
  17089.     if (NULL!=lpObj)
  17090.         lpObj->Release();
  17091.  
  17092.     return hr;
  17093. }
  17094.  
  17095.  
  17096. VW_INLINE HRESULT CVisioMenuItems::Count(long FAR *lpRet)
  17097. {
  17098.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17099.     CHECK_IP(GetIP(), CVisioMenuItems, Count);
  17100.     if (NULL!=GetIP())
  17101.         hr= GetIP()->get_Count(lpRet);
  17102.     CHECK_HRESULT(hr, CVisioMenuItems, Count);
  17103.     return hr;
  17104. }
  17105.  
  17106.  
  17107. VW_INLINE HRESULT CVisioMenuItems::Parent(CVisioMenu FAR &rWrap)
  17108. {
  17109.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17110.     IVMenu FAR *lpObj= NULL;
  17111.  
  17112.     CHECK_IP(GetIP(), CVisioMenuItems, Parent);
  17113.     if (NULL!=GetIP())
  17114.         hr= GetIP()->get_Parent(&lpObj);
  17115.     CHECK_HRESULT(hr, CVisioMenuItems, Parent);
  17116.  
  17117.     rWrap= lpObj;
  17118.     if (NULL!=lpObj)
  17119.         lpObj->Release();
  17120.  
  17121.     return hr;
  17122. }
  17123.  
  17124.  
  17125.  
  17126. //  ***************************************************************************
  17127. //  Implementation of class CVisioMenu
  17128.  
  17129. VW_INLINE HRESULT CVisioMenu::Delete()
  17130. {
  17131.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17132.     CHECK_IP(GetIP(), CVisioMenu, Delete);
  17133.     if (NULL!=GetIP())
  17134.         hr= GetIP()->Delete();
  17135.     CHECK_HRESULT(hr, CVisioMenu, Delete);
  17136.     return hr;
  17137. }
  17138.  
  17139.  
  17140. VW_INLINE HRESULT CVisioMenu::Default(BSTR_HELPER_CLASS FAR &rWrap)
  17141. {
  17142.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17143.     BSTR lpObj= NULL;
  17144.  
  17145.     CHECK_IP(GetIP(), CVisioMenu, Default);
  17146.     if (NULL!=GetIP())
  17147.         hr= GetIP()->get_Default(&lpObj);
  17148.     CHECK_HRESULT(hr, CVisioMenu, Default);
  17149.  
  17150.     rWrap= lpObj;
  17151. #ifndef NO_BSTR_HELPER
  17152.     if (NULL!=lpObj)
  17153.         SysFreeString(lpObj);
  17154. #endif  //  NO_BSTR_HELPER
  17155.  
  17156.     return hr;
  17157. }
  17158.  
  17159.  
  17160. VW_INLINE HRESULT CVisioMenu::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17161. {
  17162.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17163.     CHECK_IP(GetIP(), CVisioMenu, putCaption);
  17164.     if (NULL!=GetIP())
  17165.         hr= GetIP()->put_Caption(param01);
  17166.     CHECK_HRESULT(hr, CVisioMenu, putCaption);
  17167.     return hr;
  17168. }
  17169.  
  17170.  
  17171. VW_INLINE HRESULT CVisioMenu::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  17172. {
  17173.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17174.     BSTR lpObj= NULL;
  17175.  
  17176.     CHECK_IP(GetIP(), CVisioMenu, getCaption);
  17177.     if (NULL!=GetIP())
  17178.         hr= GetIP()->get_Caption(&lpObj);
  17179.     CHECK_HRESULT(hr, CVisioMenu, getCaption);
  17180.  
  17181.     rWrap= lpObj;
  17182. #ifndef NO_BSTR_HELPER
  17183.     if (NULL!=lpObj)
  17184.         SysFreeString(lpObj);
  17185. #endif  //  NO_BSTR_HELPER
  17186.  
  17187.     return hr;
  17188. }
  17189.  
  17190.  
  17191. VW_INLINE HRESULT CVisioMenu::Index(long FAR *lpRet)
  17192. {
  17193.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17194.     CHECK_IP(GetIP(), CVisioMenu, Index);
  17195.     if (NULL!=GetIP())
  17196.         hr= GetIP()->get_Index(lpRet);
  17197.     CHECK_HRESULT(hr, CVisioMenu, Index);
  17198.     return hr;
  17199. }
  17200.  
  17201.  
  17202. VW_INLINE HRESULT CVisioMenu::putMDIWindowMenu(VW_CONST short param01)
  17203. {
  17204.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17205.     CHECK_IP(GetIP(), CVisioMenu, putMDIWindowMenu);
  17206.     if (NULL!=GetIP())
  17207.         hr= GetIP()->put_MDIWindowMenu(param01);
  17208.     CHECK_HRESULT(hr, CVisioMenu, putMDIWindowMenu);
  17209.     return hr;
  17210. }
  17211.  
  17212.  
  17213. VW_INLINE HRESULT CVisioMenu::getMDIWindowMenu(short FAR *lpRet)
  17214. {
  17215.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17216.     CHECK_IP(GetIP(), CVisioMenu, getMDIWindowMenu);
  17217.     if (NULL!=GetIP())
  17218.         hr= GetIP()->get_MDIWindowMenu(lpRet);
  17219.     CHECK_HRESULT(hr, CVisioMenu, getMDIWindowMenu);
  17220.     return hr;
  17221. }
  17222.  
  17223.  
  17224. VW_INLINE HRESULT CVisioMenu::MenuItems(CVisioMenuItems FAR &rWrap)
  17225. {
  17226.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17227.     IVMenuItems FAR *lpObj= NULL;
  17228.  
  17229.     CHECK_IP(GetIP(), CVisioMenu, MenuItems);
  17230.     if (NULL!=GetIP())
  17231.         hr= GetIP()->get_MenuItems(&lpObj);
  17232.     CHECK_HRESULT(hr, CVisioMenu, MenuItems);
  17233.  
  17234.     rWrap= lpObj;
  17235.     if (NULL!=lpObj)
  17236.         lpObj->Release();
  17237.  
  17238.     return hr;
  17239. }
  17240.  
  17241.  
  17242. VW_INLINE HRESULT CVisioMenu::Parent(CVisioMenus FAR &rWrap)
  17243. {
  17244.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17245.     IVMenus FAR *lpObj= NULL;
  17246.  
  17247.     CHECK_IP(GetIP(), CVisioMenu, Parent);
  17248.     if (NULL!=GetIP())
  17249.         hr= GetIP()->get_Parent(&lpObj);
  17250.     CHECK_HRESULT(hr, CVisioMenu, Parent);
  17251.  
  17252.     rWrap= lpObj;
  17253.     if (NULL!=lpObj)
  17254.         lpObj->Release();
  17255.  
  17256.     return hr;
  17257. }
  17258.  
  17259.  
  17260.  
  17261. //  ***************************************************************************
  17262. //  Implementation of class CVisioIEnumVMenu
  17263.  
  17264.  
  17265. //  ***************************************************************************
  17266. //  Implementation of class CVisioMenus
  17267.  
  17268. VW_INLINE HRESULT CVisioMenus::_NewEnum(IUnknown FAR *FAR *lpRet)
  17269. {
  17270.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17271.     CHECK_IP(GetIP(), CVisioMenus, _NewEnum);
  17272.     if (NULL!=GetIP())
  17273.         hr= GetIP()->get__NewEnum(lpRet);
  17274.     CHECK_HRESULT(hr, CVisioMenus, _NewEnum);
  17275.     return hr;
  17276. }
  17277.  
  17278.  
  17279. VW_INLINE HRESULT CVisioMenus::Item(long lIndex, CVisioMenu FAR &rWrap)
  17280. {
  17281.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17282.     IVMenu FAR *lpObj= NULL;
  17283.  
  17284.     CHECK_IP(GetIP(), CVisioMenus, Item);
  17285.     if (NULL!=GetIP())
  17286.         hr= GetIP()->get_Item(lIndex, &lpObj);
  17287.     CHECK_HRESULT(hr, CVisioMenus, Item);
  17288.  
  17289.     rWrap= lpObj;
  17290.     if (NULL!=lpObj)
  17291.         lpObj->Release();
  17292.  
  17293.     return hr;
  17294. }
  17295.  
  17296.  
  17297. VW_INLINE HRESULT CVisioMenus::Add(CVisioMenu FAR &rWrap)
  17298. {
  17299.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17300.     IVMenu FAR *lpObj= NULL;
  17301.  
  17302.     CHECK_IP(GetIP(), CVisioMenus, Add);
  17303.     if (NULL!=GetIP())
  17304.         hr= GetIP()->Add(&lpObj);
  17305.     CHECK_HRESULT(hr, CVisioMenus, Add);
  17306.  
  17307.     rWrap= lpObj;
  17308.     if (NULL!=lpObj)
  17309.         lpObj->Release();
  17310.  
  17311.     return hr;
  17312. }
  17313.  
  17314.  
  17315. VW_INLINE HRESULT CVisioMenus::AddAt(long lIndex, CVisioMenu FAR &rWrap)
  17316. {
  17317.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17318.     IVMenu FAR *lpObj= NULL;
  17319.  
  17320.     CHECK_IP(GetIP(), CVisioMenus, AddAt);
  17321.     if (NULL!=GetIP())
  17322.         hr= GetIP()->AddAt(lIndex, &lpObj);
  17323.     CHECK_HRESULT(hr, CVisioMenus, AddAt);
  17324.  
  17325.     rWrap= lpObj;
  17326.     if (NULL!=lpObj)
  17327.         lpObj->Release();
  17328.  
  17329.     return hr;
  17330. }
  17331.  
  17332.  
  17333. VW_INLINE HRESULT CVisioMenus::Count(long FAR *lpRet)
  17334. {
  17335.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17336.     CHECK_IP(GetIP(), CVisioMenus, Count);
  17337.     if (NULL!=GetIP())
  17338.         hr= GetIP()->get_Count(lpRet);
  17339.     CHECK_HRESULT(hr, CVisioMenus, Count);
  17340.     return hr;
  17341. }
  17342.  
  17343.  
  17344. VW_INLINE HRESULT CVisioMenus::Parent(CVisioMenuSet FAR &rWrap)
  17345. {
  17346.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17347.     IVMenuSet FAR *lpObj= NULL;
  17348.  
  17349.     CHECK_IP(GetIP(), CVisioMenus, Parent);
  17350.     if (NULL!=GetIP())
  17351.         hr= GetIP()->get_Parent(&lpObj);
  17352.     CHECK_HRESULT(hr, CVisioMenus, Parent);
  17353.  
  17354.     rWrap= lpObj;
  17355.     if (NULL!=lpObj)
  17356.         lpObj->Release();
  17357.  
  17358.     return hr;
  17359. }
  17360.  
  17361.  
  17362.  
  17363. //  ***************************************************************************
  17364. //  Implementation of class CVisioMenuSet
  17365.  
  17366. VW_INLINE HRESULT CVisioMenuSet::Delete()
  17367. {
  17368.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17369.     CHECK_IP(GetIP(), CVisioMenuSet, Delete);
  17370.     if (NULL!=GetIP())
  17371.         hr= GetIP()->Delete();
  17372.     CHECK_HRESULT(hr, CVisioMenuSet, Delete);
  17373.     return hr;
  17374. }
  17375.  
  17376.  
  17377. VW_INLINE HRESULT CVisioMenuSet::Default(BSTR_HELPER_CLASS FAR &rWrap)
  17378. {
  17379.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17380.     BSTR lpObj= NULL;
  17381.  
  17382.     CHECK_IP(GetIP(), CVisioMenuSet, Default);
  17383.     if (NULL!=GetIP())
  17384.         hr= GetIP()->get_Default(&lpObj);
  17385.     CHECK_HRESULT(hr, CVisioMenuSet, Default);
  17386.  
  17387.     rWrap= lpObj;
  17388. #ifndef NO_BSTR_HELPER
  17389.     if (NULL!=lpObj)
  17390.         SysFreeString(lpObj);
  17391. #endif  //  NO_BSTR_HELPER
  17392.  
  17393.     return hr;
  17394. }
  17395.  
  17396.  
  17397. VW_INLINE HRESULT CVisioMenuSet::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17398. {
  17399.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17400.     CHECK_IP(GetIP(), CVisioMenuSet, putCaption);
  17401.     if (NULL!=GetIP())
  17402.         hr= GetIP()->put_Caption(param01);
  17403.     CHECK_HRESULT(hr, CVisioMenuSet, putCaption);
  17404.     return hr;
  17405. }
  17406.  
  17407.  
  17408. VW_INLINE HRESULT CVisioMenuSet::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  17409. {
  17410.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17411.     BSTR lpObj= NULL;
  17412.  
  17413.     CHECK_IP(GetIP(), CVisioMenuSet, getCaption);
  17414.     if (NULL!=GetIP())
  17415.         hr= GetIP()->get_Caption(&lpObj);
  17416.     CHECK_HRESULT(hr, CVisioMenuSet, getCaption);
  17417.  
  17418.     rWrap= lpObj;
  17419. #ifndef NO_BSTR_HELPER
  17420.     if (NULL!=lpObj)
  17421.         SysFreeString(lpObj);
  17422. #endif  //  NO_BSTR_HELPER
  17423.  
  17424.     return hr;
  17425. }
  17426.  
  17427.  
  17428. VW_INLINE HRESULT CVisioMenuSet::SetID(long FAR *lpRet)
  17429. {
  17430.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17431.     CHECK_IP(GetIP(), CVisioMenuSet, SetID);
  17432.     if (NULL!=GetIP())
  17433.         hr= GetIP()->get_SetID(lpRet);
  17434.     CHECK_HRESULT(hr, CVisioMenuSet, SetID);
  17435.     return hr;
  17436. }
  17437.  
  17438.  
  17439. VW_INLINE HRESULT CVisioMenuSet::Menus(CVisioMenus FAR &rWrap)
  17440. {
  17441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17442.     IVMenus FAR *lpObj= NULL;
  17443.  
  17444.     CHECK_IP(GetIP(), CVisioMenuSet, Menus);
  17445.     if (NULL!=GetIP())
  17446.         hr= GetIP()->get_Menus(&lpObj);
  17447.     CHECK_HRESULT(hr, CVisioMenuSet, Menus);
  17448.  
  17449.     rWrap= lpObj;
  17450.     if (NULL!=lpObj)
  17451.         lpObj->Release();
  17452.  
  17453.     return hr;
  17454. }
  17455.  
  17456.  
  17457. VW_INLINE HRESULT CVisioMenuSet::Parent(CVisioMenuSets FAR &rWrap)
  17458. {
  17459.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17460.     IVMenuSets FAR *lpObj= NULL;
  17461.  
  17462.     CHECK_IP(GetIP(), CVisioMenuSet, Parent);
  17463.     if (NULL!=GetIP())
  17464.         hr= GetIP()->get_Parent(&lpObj);
  17465.     CHECK_HRESULT(hr, CVisioMenuSet, Parent);
  17466.  
  17467.     rWrap= lpObj;
  17468.     if (NULL!=lpObj)
  17469.         lpObj->Release();
  17470.  
  17471.     return hr;
  17472. }
  17473.  
  17474.  
  17475.  
  17476. //  ***************************************************************************
  17477. //  Implementation of class CVisioIEnumVMenuSet
  17478.  
  17479.  
  17480. //  ***************************************************************************
  17481. //  Implementation of class CVisioMenuSets
  17482.  
  17483. VW_INLINE HRESULT CVisioMenuSets::_NewEnum(IUnknown FAR *FAR *lpRet)
  17484. {
  17485.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17486.     CHECK_IP(GetIP(), CVisioMenuSets, _NewEnum);
  17487.     if (NULL!=GetIP())
  17488.         hr= GetIP()->get__NewEnum(lpRet);
  17489.     CHECK_HRESULT(hr, CVisioMenuSets, _NewEnum);
  17490.     return hr;
  17491. }
  17492.  
  17493.  
  17494. VW_INLINE HRESULT CVisioMenuSets::Item(long lIndex, CVisioMenuSet FAR &rWrap)
  17495. {
  17496.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17497.     IVMenuSet FAR *lpObj= NULL;
  17498.  
  17499.     CHECK_IP(GetIP(), CVisioMenuSets, Item);
  17500.     if (NULL!=GetIP())
  17501.         hr= GetIP()->get_Item(lIndex, &lpObj);
  17502.     CHECK_HRESULT(hr, CVisioMenuSets, Item);
  17503.  
  17504.     rWrap= lpObj;
  17505.     if (NULL!=lpObj)
  17506.         lpObj->Release();
  17507.  
  17508.     return hr;
  17509. }
  17510.  
  17511.  
  17512. VW_INLINE HRESULT CVisioMenuSets::ItemAtID(long lID, CVisioMenuSet FAR &rWrap)
  17513. {
  17514.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17515.     IVMenuSet FAR *lpObj= NULL;
  17516.  
  17517.     CHECK_IP(GetIP(), CVisioMenuSets, ItemAtID);
  17518.     if (NULL!=GetIP())
  17519.         hr= GetIP()->get_ItemAtID(lID, &lpObj);
  17520.     CHECK_HRESULT(hr, CVisioMenuSets, ItemAtID);
  17521.  
  17522.     rWrap= lpObj;
  17523.     if (NULL!=lpObj)
  17524.         lpObj->Release();
  17525.  
  17526.     return hr;
  17527. }
  17528.  
  17529.  
  17530. VW_INLINE HRESULT CVisioMenuSets::Add(CVisioMenuSet FAR &rWrap)
  17531. {
  17532.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17533.     IVMenuSet FAR *lpObj= NULL;
  17534.  
  17535.     CHECK_IP(GetIP(), CVisioMenuSets, Add);
  17536.     if (NULL!=GetIP())
  17537.         hr= GetIP()->Add(&lpObj);
  17538.     CHECK_HRESULT(hr, CVisioMenuSets, Add);
  17539.  
  17540.     rWrap= lpObj;
  17541.     if (NULL!=lpObj)
  17542.         lpObj->Release();
  17543.  
  17544.     return hr;
  17545. }
  17546.  
  17547.  
  17548. VW_INLINE HRESULT CVisioMenuSets::AddAtID(long lID, CVisioMenuSet FAR &rWrap)
  17549. {
  17550.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17551.     IVMenuSet FAR *lpObj= NULL;
  17552.  
  17553.     CHECK_IP(GetIP(), CVisioMenuSets, AddAtID);
  17554.     if (NULL!=GetIP())
  17555.         hr= GetIP()->AddAtID(lID, &lpObj);
  17556.     CHECK_HRESULT(hr, CVisioMenuSets, AddAtID);
  17557.  
  17558.     rWrap= lpObj;
  17559.     if (NULL!=lpObj)
  17560.         lpObj->Release();
  17561.  
  17562.     return hr;
  17563. }
  17564.  
  17565.  
  17566. VW_INLINE HRESULT CVisioMenuSets::Count(long FAR *lpRet)
  17567. {
  17568.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17569.     CHECK_IP(GetIP(), CVisioMenuSets, Count);
  17570.     if (NULL!=GetIP())
  17571.         hr= GetIP()->get_Count(lpRet);
  17572.     CHECK_HRESULT(hr, CVisioMenuSets, Count);
  17573.     return hr;
  17574. }
  17575.  
  17576.  
  17577. VW_INLINE HRESULT CVisioMenuSets::Parent(CVisioUIObject FAR &rWrap)
  17578. {
  17579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17580.     IVUIObject FAR *lpObj= NULL;
  17581.  
  17582.     CHECK_IP(GetIP(), CVisioMenuSets, Parent);
  17583.     if (NULL!=GetIP())
  17584.         hr= GetIP()->get_Parent(&lpObj);
  17585.     CHECK_HRESULT(hr, CVisioMenuSets, Parent);
  17586.  
  17587.     rWrap= lpObj;
  17588.     if (NULL!=lpObj)
  17589.         lpObj->Release();
  17590.  
  17591.     return hr;
  17592. }
  17593.  
  17594.  
  17595.  
  17596. //  ***************************************************************************
  17597. //  Implementation of class CVisioToolbarItem
  17598.  
  17599. VW_INLINE HRESULT CVisioToolbarItem::Delete()
  17600. {
  17601.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17602.     CHECK_IP(GetIP(), CVisioToolbarItem, Delete);
  17603.     if (NULL!=GetIP())
  17604.         hr= GetIP()->Delete();
  17605.     CHECK_HRESULT(hr, CVisioToolbarItem, Delete);
  17606.     return hr;
  17607. }
  17608.  
  17609.  
  17610. VW_INLINE HRESULT CVisioToolbarItem::IconFileName(BSTR_HELPER_CLASS FAR &IconFileName)
  17611. {
  17612.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17613.     CHECK_IP(GetIP(), CVisioToolbarItem, IconFileName);
  17614.     if (NULL!=GetIP())
  17615.         hr= GetIP()->IconFileName(IconFileName);
  17616.     CHECK_HRESULT(hr, CVisioToolbarItem, IconFileName);
  17617.     return hr;
  17618. }
  17619.  
  17620.  
  17621. VW_INLINE HRESULT CVisioToolbarItem::Default(BSTR_HELPER_CLASS FAR &rWrap)
  17622. {
  17623.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17624.     BSTR lpObj= NULL;
  17625.  
  17626.     CHECK_IP(GetIP(), CVisioToolbarItem, Default);
  17627.     if (NULL!=GetIP())
  17628.         hr= GetIP()->get_Default(&lpObj);
  17629.     CHECK_HRESULT(hr, CVisioToolbarItem, Default);
  17630.  
  17631.     rWrap= lpObj;
  17632. #ifndef NO_BSTR_HELPER
  17633.     if (NULL!=lpObj)
  17634.         SysFreeString(lpObj);
  17635. #endif  //  NO_BSTR_HELPER
  17636.  
  17637.     return hr;
  17638. }
  17639.  
  17640.  
  17641. VW_INLINE HRESULT CVisioToolbarItem::Index(long FAR *lpRet)
  17642. {
  17643.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17644.     CHECK_IP(GetIP(), CVisioToolbarItem, Index);
  17645.     if (NULL!=GetIP())
  17646.         hr= GetIP()->get_Index(lpRet);
  17647.     CHECK_HRESULT(hr, CVisioToolbarItem, Index);
  17648.     return hr;
  17649. }
  17650.  
  17651.  
  17652. VW_INLINE HRESULT CVisioToolbarItem::Parent(CVisioToolbarItems FAR &rWrap)
  17653. {
  17654.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17655.     IVToolbarItems FAR *lpObj= NULL;
  17656.  
  17657.     CHECK_IP(GetIP(), CVisioToolbarItem, Parent);
  17658.     if (NULL!=GetIP())
  17659.         hr= GetIP()->get_Parent(&lpObj);
  17660.     CHECK_HRESULT(hr, CVisioToolbarItem, Parent);
  17661.  
  17662.     rWrap= lpObj;
  17663.     if (NULL!=lpObj)
  17664.         lpObj->Release();
  17665.  
  17666.     return hr;
  17667. }
  17668.  
  17669.  
  17670. VW_INLINE HRESULT CVisioToolbarItem::putCmdNum(VW_CONST short param01)
  17671. {
  17672.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17673.     CHECK_IP(GetIP(), CVisioToolbarItem, putCmdNum);
  17674.     if (NULL!=GetIP())
  17675.         hr= GetIP()->put_CmdNum(param01);
  17676.     CHECK_HRESULT(hr, CVisioToolbarItem, putCmdNum);
  17677.     return hr;
  17678. }
  17679.  
  17680.  
  17681. VW_INLINE HRESULT CVisioToolbarItem::getCmdNum(short FAR *lpRet)
  17682. {
  17683.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17684.     CHECK_IP(GetIP(), CVisioToolbarItem, getCmdNum);
  17685.     if (NULL!=GetIP())
  17686.         hr= GetIP()->get_CmdNum(lpRet);
  17687.     CHECK_HRESULT(hr, CVisioToolbarItem, getCmdNum);
  17688.     return hr;
  17689. }
  17690.  
  17691.  
  17692. VW_INLINE HRESULT CVisioToolbarItem::putHelpContextID(VW_CONST short param01)
  17693. {
  17694.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17695.     CHECK_IP(GetIP(), CVisioToolbarItem, putHelpContextID);
  17696.     if (NULL!=GetIP())
  17697.         hr= GetIP()->put_HelpContextID(param01);
  17698.     CHECK_HRESULT(hr, CVisioToolbarItem, putHelpContextID);
  17699.     return hr;
  17700. }
  17701.  
  17702.  
  17703. VW_INLINE HRESULT CVisioToolbarItem::getHelpContextID(short FAR *lpRet)
  17704. {
  17705.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17706.     CHECK_IP(GetIP(), CVisioToolbarItem, getHelpContextID);
  17707.     if (NULL!=GetIP())
  17708.         hr= GetIP()->get_HelpContextID(lpRet);
  17709.     CHECK_HRESULT(hr, CVisioToolbarItem, getHelpContextID);
  17710.     return hr;
  17711. }
  17712.  
  17713.  
  17714. VW_INLINE HRESULT CVisioToolbarItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17715. {
  17716.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17717.     CHECK_IP(GetIP(), CVisioToolbarItem, putActionText);
  17718.     if (NULL!=GetIP())
  17719.         hr= GetIP()->put_ActionText(param01);
  17720.     CHECK_HRESULT(hr, CVisioToolbarItem, putActionText);
  17721.     return hr;
  17722. }
  17723.  
  17724.  
  17725. VW_INLINE HRESULT CVisioToolbarItem::getActionText(BSTR_HELPER_CLASS FAR &rWrap)
  17726. {
  17727.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17728.     BSTR lpObj= NULL;
  17729.  
  17730.     CHECK_IP(GetIP(), CVisioToolbarItem, getActionText);
  17731.     if (NULL!=GetIP())
  17732.         hr= GetIP()->get_ActionText(&lpObj);
  17733.     CHECK_HRESULT(hr, CVisioToolbarItem, getActionText);
  17734.  
  17735.     rWrap= lpObj;
  17736. #ifndef NO_BSTR_HELPER
  17737.     if (NULL!=lpObj)
  17738.         SysFreeString(lpObj);
  17739. #endif  //  NO_BSTR_HELPER
  17740.  
  17741.     return hr;
  17742. }
  17743.  
  17744.  
  17745. VW_INLINE HRESULT CVisioToolbarItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17746. {
  17747.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17748.     CHECK_IP(GetIP(), CVisioToolbarItem, putAddOnName);
  17749.     if (NULL!=GetIP())
  17750.         hr= GetIP()->put_AddOnName(param01);
  17751.     CHECK_HRESULT(hr, CVisioToolbarItem, putAddOnName);
  17752.     return hr;
  17753. }
  17754.  
  17755.  
  17756. VW_INLINE HRESULT CVisioToolbarItem::getAddOnName(BSTR_HELPER_CLASS FAR &rWrap)
  17757. {
  17758.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17759.     BSTR lpObj= NULL;
  17760.  
  17761.     CHECK_IP(GetIP(), CVisioToolbarItem, getAddOnName);
  17762.     if (NULL!=GetIP())
  17763.         hr= GetIP()->get_AddOnName(&lpObj);
  17764.     CHECK_HRESULT(hr, CVisioToolbarItem, getAddOnName);
  17765.  
  17766.     rWrap= lpObj;
  17767. #ifndef NO_BSTR_HELPER
  17768.     if (NULL!=lpObj)
  17769.         SysFreeString(lpObj);
  17770. #endif  //  NO_BSTR_HELPER
  17771.  
  17772.     return hr;
  17773. }
  17774.  
  17775.  
  17776. VW_INLINE HRESULT CVisioToolbarItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17777. {
  17778.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17779.     CHECK_IP(GetIP(), CVisioToolbarItem, putAddOnArgs);
  17780.     if (NULL!=GetIP())
  17781.         hr= GetIP()->put_AddOnArgs(param01);
  17782.     CHECK_HRESULT(hr, CVisioToolbarItem, putAddOnArgs);
  17783.     return hr;
  17784. }
  17785.  
  17786.  
  17787. VW_INLINE HRESULT CVisioToolbarItem::getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap)
  17788. {
  17789.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17790.     BSTR lpObj= NULL;
  17791.  
  17792.     CHECK_IP(GetIP(), CVisioToolbarItem, getAddOnArgs);
  17793.     if (NULL!=GetIP())
  17794.         hr= GetIP()->get_AddOnArgs(&lpObj);
  17795.     CHECK_HRESULT(hr, CVisioToolbarItem, getAddOnArgs);
  17796.  
  17797.     rWrap= lpObj;
  17798. #ifndef NO_BSTR_HELPER
  17799.     if (NULL!=lpObj)
  17800.         SysFreeString(lpObj);
  17801. #endif  //  NO_BSTR_HELPER
  17802.  
  17803.     return hr;
  17804. }
  17805.  
  17806.  
  17807. VW_INLINE HRESULT CVisioToolbarItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17808. {
  17809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17810.     CHECK_IP(GetIP(), CVisioToolbarItem, putHelpFile);
  17811.     if (NULL!=GetIP())
  17812.         hr= GetIP()->put_HelpFile(param01);
  17813.     CHECK_HRESULT(hr, CVisioToolbarItem, putHelpFile);
  17814.     return hr;
  17815. }
  17816.  
  17817.  
  17818. VW_INLINE HRESULT CVisioToolbarItem::getHelpFile(BSTR_HELPER_CLASS FAR &rWrap)
  17819. {
  17820.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17821.     BSTR lpObj= NULL;
  17822.  
  17823.     CHECK_IP(GetIP(), CVisioToolbarItem, getHelpFile);
  17824.     if (NULL!=GetIP())
  17825.         hr= GetIP()->get_HelpFile(&lpObj);
  17826.     CHECK_HRESULT(hr, CVisioToolbarItem, getHelpFile);
  17827.  
  17828.     rWrap= lpObj;
  17829. #ifndef NO_BSTR_HELPER
  17830.     if (NULL!=lpObj)
  17831.         SysFreeString(lpObj);
  17832. #endif  //  NO_BSTR_HELPER
  17833.  
  17834.     return hr;
  17835. }
  17836.  
  17837.  
  17838. VW_INLINE HRESULT CVisioToolbarItem::putCntrlType(VW_CONST short param01)
  17839. {
  17840.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17841.     CHECK_IP(GetIP(), CVisioToolbarItem, putCntrlType);
  17842.     if (NULL!=GetIP())
  17843.         hr= GetIP()->put_CntrlType(param01);
  17844.     CHECK_HRESULT(hr, CVisioToolbarItem, putCntrlType);
  17845.     return hr;
  17846. }
  17847.  
  17848.  
  17849. VW_INLINE HRESULT CVisioToolbarItem::getCntrlType(short FAR *lpRet)
  17850. {
  17851.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17852.     CHECK_IP(GetIP(), CVisioToolbarItem, getCntrlType);
  17853.     if (NULL!=GetIP())
  17854.         hr= GetIP()->get_CntrlType(lpRet);
  17855.     CHECK_HRESULT(hr, CVisioToolbarItem, getCntrlType);
  17856.     return hr;
  17857. }
  17858.  
  17859.  
  17860. VW_INLINE HRESULT CVisioToolbarItem::putCntrlID(VW_CONST short param01)
  17861. {
  17862.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17863.     CHECK_IP(GetIP(), CVisioToolbarItem, putCntrlID);
  17864.     if (NULL!=GetIP())
  17865.         hr= GetIP()->put_CntrlID(param01);
  17866.     CHECK_HRESULT(hr, CVisioToolbarItem, putCntrlID);
  17867.     return hr;
  17868. }
  17869.  
  17870.  
  17871. VW_INLINE HRESULT CVisioToolbarItem::getCntrlID(short FAR *lpRet)
  17872. {
  17873.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17874.     CHECK_IP(GetIP(), CVisioToolbarItem, getCntrlID);
  17875.     if (NULL!=GetIP())
  17876.         hr= GetIP()->get_CntrlID(lpRet);
  17877.     CHECK_HRESULT(hr, CVisioToolbarItem, getCntrlID);
  17878.     return hr;
  17879. }
  17880.  
  17881.  
  17882. VW_INLINE HRESULT CVisioToolbarItem::putTypeSpecific1(VW_CONST short param01)
  17883. {
  17884.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17885.     CHECK_IP(GetIP(), CVisioToolbarItem, putTypeSpecific1);
  17886.     if (NULL!=GetIP())
  17887.         hr= GetIP()->put_TypeSpecific1(param01);
  17888.     CHECK_HRESULT(hr, CVisioToolbarItem, putTypeSpecific1);
  17889.     return hr;
  17890. }
  17891.  
  17892.  
  17893. VW_INLINE HRESULT CVisioToolbarItem::getTypeSpecific1(short FAR *lpRet)
  17894. {
  17895.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17896.     CHECK_IP(GetIP(), CVisioToolbarItem, getTypeSpecific1);
  17897.     if (NULL!=GetIP())
  17898.         hr= GetIP()->get_TypeSpecific1(lpRet);
  17899.     CHECK_HRESULT(hr, CVisioToolbarItem, getTypeSpecific1);
  17900.     return hr;
  17901. }
  17902.  
  17903.  
  17904. VW_INLINE HRESULT CVisioToolbarItem::putPriority(VW_CONST short param01)
  17905. {
  17906.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17907.     CHECK_IP(GetIP(), CVisioToolbarItem, putPriority);
  17908.     if (NULL!=GetIP())
  17909.         hr= GetIP()->put_Priority(param01);
  17910.     CHECK_HRESULT(hr, CVisioToolbarItem, putPriority);
  17911.     return hr;
  17912. }
  17913.  
  17914.  
  17915. VW_INLINE HRESULT CVisioToolbarItem::getPriority(short FAR *lpRet)
  17916. {
  17917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17918.     CHECK_IP(GetIP(), CVisioToolbarItem, getPriority);
  17919.     if (NULL!=GetIP())
  17920.         hr= GetIP()->get_Priority(lpRet);
  17921.     CHECK_HRESULT(hr, CVisioToolbarItem, getPriority);
  17922.     return hr;
  17923. }
  17924.  
  17925.  
  17926. VW_INLINE HRESULT CVisioToolbarItem::putSpacing(VW_CONST short param01)
  17927. {
  17928.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17929.     CHECK_IP(GetIP(), CVisioToolbarItem, putSpacing);
  17930.     if (NULL!=GetIP())
  17931.         hr= GetIP()->put_Spacing(param01);
  17932.     CHECK_HRESULT(hr, CVisioToolbarItem, putSpacing);
  17933.     return hr;
  17934. }
  17935.  
  17936.  
  17937. VW_INLINE HRESULT CVisioToolbarItem::getSpacing(short FAR *lpRet)
  17938. {
  17939.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17940.     CHECK_IP(GetIP(), CVisioToolbarItem, getSpacing);
  17941.     if (NULL!=GetIP())
  17942.         hr= GetIP()->get_Spacing(lpRet);
  17943.     CHECK_HRESULT(hr, CVisioToolbarItem, getSpacing);
  17944.     return hr;
  17945. }
  17946.  
  17947.  
  17948. VW_INLINE HRESULT CVisioToolbarItem::putTypeSpecific2(VW_CONST short param01)
  17949. {
  17950.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17951.     CHECK_IP(GetIP(), CVisioToolbarItem, putTypeSpecific2);
  17952.     if (NULL!=GetIP())
  17953.         hr= GetIP()->put_TypeSpecific2(param01);
  17954.     CHECK_HRESULT(hr, CVisioToolbarItem, putTypeSpecific2);
  17955.     return hr;
  17956. }
  17957.  
  17958.  
  17959. VW_INLINE HRESULT CVisioToolbarItem::getTypeSpecific2(short FAR *lpRet)
  17960. {
  17961.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17962.     CHECK_IP(GetIP(), CVisioToolbarItem, getTypeSpecific2);
  17963.     if (NULL!=GetIP())
  17964.         hr= GetIP()->get_TypeSpecific2(lpRet);
  17965.     CHECK_HRESULT(hr, CVisioToolbarItem, getTypeSpecific2);
  17966.     return hr;
  17967. }
  17968.  
  17969.  
  17970.  
  17971. //  ***************************************************************************
  17972. //  Implementation of class CVisioIEnumVToolbarItem
  17973.  
  17974.  
  17975. //  ***************************************************************************
  17976. //  Implementation of class CVisioToolbarItems
  17977.  
  17978. VW_INLINE HRESULT CVisioToolbarItems::_NewEnum(IUnknown FAR *FAR *lpRet)
  17979. {
  17980.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17981.     CHECK_IP(GetIP(), CVisioToolbarItems, _NewEnum);
  17982.     if (NULL!=GetIP())
  17983.         hr= GetIP()->get__NewEnum(lpRet);
  17984.     CHECK_HRESULT(hr, CVisioToolbarItems, _NewEnum);
  17985.     return hr;
  17986. }
  17987.  
  17988.  
  17989. VW_INLINE HRESULT CVisioToolbarItems::Item(long lIndex, CVisioToolbarItem FAR &rWrap)
  17990. {
  17991.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17992.     IVToolbarItem FAR *lpObj= NULL;
  17993.  
  17994.     CHECK_IP(GetIP(), CVisioToolbarItems, Item);
  17995.     if (NULL!=GetIP())
  17996.         hr= GetIP()->get_Item(lIndex, &lpObj);
  17997.     CHECK_HRESULT(hr, CVisioToolbarItems, Item);
  17998.  
  17999.     rWrap= lpObj;
  18000.     if (NULL!=lpObj)
  18001.         lpObj->Release();
  18002.  
  18003.     return hr;
  18004. }
  18005.  
  18006.  
  18007. VW_INLINE HRESULT CVisioToolbarItems::Add(CVisioToolbarItem FAR &rWrap)
  18008. {
  18009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18010.     IVToolbarItem FAR *lpObj= NULL;
  18011.  
  18012.     CHECK_IP(GetIP(), CVisioToolbarItems, Add);
  18013.     if (NULL!=GetIP())
  18014.         hr= GetIP()->Add(&lpObj);
  18015.     CHECK_HRESULT(hr, CVisioToolbarItems, Add);
  18016.  
  18017.     rWrap= lpObj;
  18018.     if (NULL!=lpObj)
  18019.         lpObj->Release();
  18020.  
  18021.     return hr;
  18022. }
  18023.  
  18024.  
  18025. VW_INLINE HRESULT CVisioToolbarItems::AddAt(long lIndex, CVisioToolbarItem FAR &rWrap)
  18026. {
  18027.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18028.     IVToolbarItem FAR *lpObj= NULL;
  18029.  
  18030.     CHECK_IP(GetIP(), CVisioToolbarItems, AddAt);
  18031.     if (NULL!=GetIP())
  18032.         hr= GetIP()->AddAt(lIndex, &lpObj);
  18033.     CHECK_HRESULT(hr, CVisioToolbarItems, AddAt);
  18034.  
  18035.     rWrap= lpObj;
  18036.     if (NULL!=lpObj)
  18037.         lpObj->Release();
  18038.  
  18039.     return hr;
  18040. }
  18041.  
  18042.  
  18043. VW_INLINE HRESULT CVisioToolbarItems::Count(long FAR *lpRet)
  18044. {
  18045.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18046.     CHECK_IP(GetIP(), CVisioToolbarItems, Count);
  18047.     if (NULL!=GetIP())
  18048.         hr= GetIP()->get_Count(lpRet);
  18049.     CHECK_HRESULT(hr, CVisioToolbarItems, Count);
  18050.     return hr;
  18051. }
  18052.  
  18053.  
  18054. VW_INLINE HRESULT CVisioToolbarItems::Parent(CVisioToolbar FAR &rWrap)
  18055. {
  18056.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18057.     IVToolbar FAR *lpObj= NULL;
  18058.  
  18059.     CHECK_IP(GetIP(), CVisioToolbarItems, Parent);
  18060.     if (NULL!=GetIP())
  18061.         hr= GetIP()->get_Parent(&lpObj);
  18062.     CHECK_HRESULT(hr, CVisioToolbarItems, Parent);
  18063.  
  18064.     rWrap= lpObj;
  18065.     if (NULL!=lpObj)
  18066.         lpObj->Release();
  18067.  
  18068.     return hr;
  18069. }
  18070.  
  18071.  
  18072.  
  18073. //  ***************************************************************************
  18074. //  Implementation of class CVisioToolbar
  18075.  
  18076. VW_INLINE HRESULT CVisioToolbar::Delete()
  18077. {
  18078.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18079.     CHECK_IP(GetIP(), CVisioToolbar, Delete);
  18080.     if (NULL!=GetIP())
  18081.         hr= GetIP()->Delete();
  18082.     CHECK_HRESULT(hr, CVisioToolbar, Delete);
  18083.     return hr;
  18084. }
  18085.  
  18086.  
  18087. VW_INLINE HRESULT CVisioToolbar::Default(BSTR_HELPER_CLASS FAR &rWrap)
  18088. {
  18089.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18090.     BSTR lpObj= NULL;
  18091.  
  18092.     CHECK_IP(GetIP(), CVisioToolbar, Default);
  18093.     if (NULL!=GetIP())
  18094.         hr= GetIP()->get_Default(&lpObj);
  18095.     CHECK_HRESULT(hr, CVisioToolbar, Default);
  18096.  
  18097.     rWrap= lpObj;
  18098. #ifndef NO_BSTR_HELPER
  18099.     if (NULL!=lpObj)
  18100.         SysFreeString(lpObj);
  18101. #endif  //  NO_BSTR_HELPER
  18102.  
  18103.     return hr;
  18104. }
  18105.  
  18106.  
  18107. VW_INLINE HRESULT CVisioToolbar::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18108. {
  18109.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18110.     CHECK_IP(GetIP(), CVisioToolbar, putCaption);
  18111.     if (NULL!=GetIP())
  18112.         hr= GetIP()->put_Caption(param01);
  18113.     CHECK_HRESULT(hr, CVisioToolbar, putCaption);
  18114.     return hr;
  18115. }
  18116.  
  18117.  
  18118. VW_INLINE HRESULT CVisioToolbar::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  18119. {
  18120.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18121.     BSTR lpObj= NULL;
  18122.  
  18123.     CHECK_IP(GetIP(), CVisioToolbar, getCaption);
  18124.     if (NULL!=GetIP())
  18125.         hr= GetIP()->get_Caption(&lpObj);
  18126.     CHECK_HRESULT(hr, CVisioToolbar, getCaption);
  18127.  
  18128.     rWrap= lpObj;
  18129. #ifndef NO_BSTR_HELPER
  18130.     if (NULL!=lpObj)
  18131.         SysFreeString(lpObj);
  18132. #endif  //  NO_BSTR_HELPER
  18133.  
  18134.     return hr;
  18135. }
  18136.  
  18137.  
  18138. VW_INLINE HRESULT CVisioToolbar::Index(long FAR *lpRet)
  18139. {
  18140.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18141.     CHECK_IP(GetIP(), CVisioToolbar, Index);
  18142.     if (NULL!=GetIP())
  18143.         hr= GetIP()->get_Index(lpRet);
  18144.     CHECK_HRESULT(hr, CVisioToolbar, Index);
  18145.     return hr;
  18146. }
  18147.  
  18148.  
  18149. VW_INLINE HRESULT CVisioToolbar::ToolbarItems(CVisioToolbarItems FAR &rWrap)
  18150. {
  18151.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18152.     IVToolbarItems FAR *lpObj= NULL;
  18153.  
  18154.     CHECK_IP(GetIP(), CVisioToolbar, ToolbarItems);
  18155.     if (NULL!=GetIP())
  18156.         hr= GetIP()->get_ToolbarItems(&lpObj);
  18157.     CHECK_HRESULT(hr, CVisioToolbar, ToolbarItems);
  18158.  
  18159.     rWrap= lpObj;
  18160.     if (NULL!=lpObj)
  18161.         lpObj->Release();
  18162.  
  18163.     return hr;
  18164. }
  18165.  
  18166.  
  18167. VW_INLINE HRESULT CVisioToolbar::Parent(CVisioToolbars FAR &rWrap)
  18168. {
  18169.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18170.     IVToolbars FAR *lpObj= NULL;
  18171.  
  18172.     CHECK_IP(GetIP(), CVisioToolbar, Parent);
  18173.     if (NULL!=GetIP())
  18174.         hr= GetIP()->get_Parent(&lpObj);
  18175.     CHECK_HRESULT(hr, CVisioToolbar, Parent);
  18176.  
  18177.     rWrap= lpObj;
  18178.     if (NULL!=lpObj)
  18179.         lpObj->Release();
  18180.  
  18181.     return hr;
  18182. }
  18183.  
  18184.  
  18185.  
  18186. //  ***************************************************************************
  18187. //  Implementation of class CVisioIEnumVToolbar
  18188.  
  18189.  
  18190. //  ***************************************************************************
  18191. //  Implementation of class CVisioToolbars
  18192.  
  18193. VW_INLINE HRESULT CVisioToolbars::_NewEnum(IUnknown FAR *FAR *lpRet)
  18194. {
  18195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18196.     CHECK_IP(GetIP(), CVisioToolbars, _NewEnum);
  18197.     if (NULL!=GetIP())
  18198.         hr= GetIP()->get__NewEnum(lpRet);
  18199.     CHECK_HRESULT(hr, CVisioToolbars, _NewEnum);
  18200.     return hr;
  18201. }
  18202.  
  18203.  
  18204. VW_INLINE HRESULT CVisioToolbars::Item(long lIndex, CVisioToolbar FAR &rWrap)
  18205. {
  18206.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18207.     IVToolbar FAR *lpObj= NULL;
  18208.  
  18209.     CHECK_IP(GetIP(), CVisioToolbars, Item);
  18210.     if (NULL!=GetIP())
  18211.         hr= GetIP()->get_Item(lIndex, &lpObj);
  18212.     CHECK_HRESULT(hr, CVisioToolbars, Item);
  18213.  
  18214.     rWrap= lpObj;
  18215.     if (NULL!=lpObj)
  18216.         lpObj->Release();
  18217.  
  18218.     return hr;
  18219. }
  18220.  
  18221.  
  18222. VW_INLINE HRESULT CVisioToolbars::Add(CVisioToolbar FAR &rWrap)
  18223. {
  18224.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18225.     IVToolbar FAR *lpObj= NULL;
  18226.  
  18227.     CHECK_IP(GetIP(), CVisioToolbars, Add);
  18228.     if (NULL!=GetIP())
  18229.         hr= GetIP()->Add(&lpObj);
  18230.     CHECK_HRESULT(hr, CVisioToolbars, Add);
  18231.  
  18232.     rWrap= lpObj;
  18233.     if (NULL!=lpObj)
  18234.         lpObj->Release();
  18235.  
  18236.     return hr;
  18237. }
  18238.  
  18239.  
  18240. VW_INLINE HRESULT CVisioToolbars::AddAt(long lIndex, CVisioToolbar FAR &rWrap)
  18241. {
  18242.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18243.     IVToolbar FAR *lpObj= NULL;
  18244.  
  18245.     CHECK_IP(GetIP(), CVisioToolbars, AddAt);
  18246.     if (NULL!=GetIP())
  18247.         hr= GetIP()->AddAt(lIndex, &lpObj);
  18248.     CHECK_HRESULT(hr, CVisioToolbars, AddAt);
  18249.  
  18250.     rWrap= lpObj;
  18251.     if (NULL!=lpObj)
  18252.         lpObj->Release();
  18253.  
  18254.     return hr;
  18255. }
  18256.  
  18257.  
  18258. VW_INLINE HRESULT CVisioToolbars::Count(long FAR *lpRet)
  18259. {
  18260.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18261.     CHECK_IP(GetIP(), CVisioToolbars, Count);
  18262.     if (NULL!=GetIP())
  18263.         hr= GetIP()->get_Count(lpRet);
  18264.     CHECK_HRESULT(hr, CVisioToolbars, Count);
  18265.     return hr;
  18266. }
  18267.  
  18268.  
  18269. VW_INLINE HRESULT CVisioToolbars::Parent(CVisioToolbarSet FAR &rWrap)
  18270. {
  18271.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18272.     IVToolbarSet FAR *lpObj= NULL;
  18273.  
  18274.     CHECK_IP(GetIP(), CVisioToolbars, Parent);
  18275.     if (NULL!=GetIP())
  18276.         hr= GetIP()->get_Parent(&lpObj);
  18277.     CHECK_HRESULT(hr, CVisioToolbars, Parent);
  18278.  
  18279.     rWrap= lpObj;
  18280.     if (NULL!=lpObj)
  18281.         lpObj->Release();
  18282.  
  18283.     return hr;
  18284. }
  18285.  
  18286.  
  18287.  
  18288. //  ***************************************************************************
  18289. //  Implementation of class CVisioToolbarSet
  18290.  
  18291. VW_INLINE HRESULT CVisioToolbarSet::Delete()
  18292. {
  18293.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18294.     CHECK_IP(GetIP(), CVisioToolbarSet, Delete);
  18295.     if (NULL!=GetIP())
  18296.         hr= GetIP()->Delete();
  18297.     CHECK_HRESULT(hr, CVisioToolbarSet, Delete);
  18298.     return hr;
  18299. }
  18300.  
  18301.  
  18302. VW_INLINE HRESULT CVisioToolbarSet::Default(BSTR_HELPER_CLASS FAR &rWrap)
  18303. {
  18304.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18305.     BSTR lpObj= NULL;
  18306.  
  18307.     CHECK_IP(GetIP(), CVisioToolbarSet, Default);
  18308.     if (NULL!=GetIP())
  18309.         hr= GetIP()->get_Default(&lpObj);
  18310.     CHECK_HRESULT(hr, CVisioToolbarSet, Default);
  18311.  
  18312.     rWrap= lpObj;
  18313. #ifndef NO_BSTR_HELPER
  18314.     if (NULL!=lpObj)
  18315.         SysFreeString(lpObj);
  18316. #endif  //  NO_BSTR_HELPER
  18317.  
  18318.     return hr;
  18319. }
  18320.  
  18321.  
  18322. VW_INLINE HRESULT CVisioToolbarSet::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18323. {
  18324.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18325.     CHECK_IP(GetIP(), CVisioToolbarSet, putCaption);
  18326.     if (NULL!=GetIP())
  18327.         hr= GetIP()->put_Caption(param01);
  18328.     CHECK_HRESULT(hr, CVisioToolbarSet, putCaption);
  18329.     return hr;
  18330. }
  18331.  
  18332.  
  18333. VW_INLINE HRESULT CVisioToolbarSet::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  18334. {
  18335.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18336.     BSTR lpObj= NULL;
  18337.  
  18338.     CHECK_IP(GetIP(), CVisioToolbarSet, getCaption);
  18339.     if (NULL!=GetIP())
  18340.         hr= GetIP()->get_Caption(&lpObj);
  18341.     CHECK_HRESULT(hr, CVisioToolbarSet, getCaption);
  18342.  
  18343.     rWrap= lpObj;
  18344. #ifndef NO_BSTR_HELPER
  18345.     if (NULL!=lpObj)
  18346.         SysFreeString(lpObj);
  18347. #endif  //  NO_BSTR_HELPER
  18348.  
  18349.     return hr;
  18350. }
  18351.  
  18352.  
  18353. VW_INLINE HRESULT CVisioToolbarSet::SetID(long FAR *lpRet)
  18354. {
  18355.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18356.     CHECK_IP(GetIP(), CVisioToolbarSet, SetID);
  18357.     if (NULL!=GetIP())
  18358.         hr= GetIP()->get_SetID(lpRet);
  18359.     CHECK_HRESULT(hr, CVisioToolbarSet, SetID);
  18360.     return hr;
  18361. }
  18362.  
  18363.  
  18364. VW_INLINE HRESULT CVisioToolbarSet::Toolbars(CVisioToolbars FAR &rWrap)
  18365. {
  18366.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18367.     IVToolbars FAR *lpObj= NULL;
  18368.  
  18369.     CHECK_IP(GetIP(), CVisioToolbarSet, Toolbars);
  18370.     if (NULL!=GetIP())
  18371.         hr= GetIP()->get_Toolbars(&lpObj);
  18372.     CHECK_HRESULT(hr, CVisioToolbarSet, Toolbars);
  18373.  
  18374.     rWrap= lpObj;
  18375.     if (NULL!=lpObj)
  18376.         lpObj->Release();
  18377.  
  18378.     return hr;
  18379. }
  18380.  
  18381.  
  18382. VW_INLINE HRESULT CVisioToolbarSet::Parent(CVisioToolbarSets FAR &rWrap)
  18383. {
  18384.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18385.     IVToolbarSets FAR *lpObj= NULL;
  18386.  
  18387.     CHECK_IP(GetIP(), CVisioToolbarSet, Parent);
  18388.     if (NULL!=GetIP())
  18389.         hr= GetIP()->get_Parent(&lpObj);
  18390.     CHECK_HRESULT(hr, CVisioToolbarSet, Parent);
  18391.  
  18392.     rWrap= lpObj;
  18393.     if (NULL!=lpObj)
  18394.         lpObj->Release();
  18395.  
  18396.     return hr;
  18397. }
  18398.  
  18399.  
  18400.  
  18401. //  ***************************************************************************
  18402. //  Implementation of class CVisioIEnumVToolbarSet
  18403.  
  18404.  
  18405. //  ***************************************************************************
  18406. //  Implementation of class CVisioToolbarSets
  18407.  
  18408. VW_INLINE HRESULT CVisioToolbarSets::_NewEnum(IUnknown FAR *FAR *lpRet)
  18409. {
  18410.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18411.     CHECK_IP(GetIP(), CVisioToolbarSets, _NewEnum);
  18412.     if (NULL!=GetIP())
  18413.         hr= GetIP()->get__NewEnum(lpRet);
  18414.     CHECK_HRESULT(hr, CVisioToolbarSets, _NewEnum);
  18415.     return hr;
  18416. }
  18417.  
  18418.  
  18419. VW_INLINE HRESULT CVisioToolbarSets::Item(long lIndex, CVisioToolbarSet FAR &rWrap)
  18420. {
  18421.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18422.     IVToolbarSet FAR *lpObj= NULL;
  18423.  
  18424.     CHECK_IP(GetIP(), CVisioToolbarSets, Item);
  18425.     if (NULL!=GetIP())
  18426.         hr= GetIP()->get_Item(lIndex, &lpObj);
  18427.     CHECK_HRESULT(hr, CVisioToolbarSets, Item);
  18428.  
  18429.     rWrap= lpObj;
  18430.     if (NULL!=lpObj)
  18431.         lpObj->Release();
  18432.  
  18433.     return hr;
  18434. }
  18435.  
  18436.  
  18437. VW_INLINE HRESULT CVisioToolbarSets::ItemAtID(long lID, CVisioToolbarSet FAR &rWrap)
  18438. {
  18439.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18440.     IVToolbarSet FAR *lpObj= NULL;
  18441.  
  18442.     CHECK_IP(GetIP(), CVisioToolbarSets, ItemAtID);
  18443.     if (NULL!=GetIP())
  18444.         hr= GetIP()->get_ItemAtID(lID, &lpObj);
  18445.     CHECK_HRESULT(hr, CVisioToolbarSets, ItemAtID);
  18446.  
  18447.     rWrap= lpObj;
  18448.     if (NULL!=lpObj)
  18449.         lpObj->Release();
  18450.  
  18451.     return hr;
  18452. }
  18453.  
  18454.  
  18455. VW_INLINE HRESULT CVisioToolbarSets::Add(CVisioToolbarSet FAR &rWrap)
  18456. {
  18457.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18458.     IVToolbarSet FAR *lpObj= NULL;
  18459.  
  18460.     CHECK_IP(GetIP(), CVisioToolbarSets, Add);
  18461.     if (NULL!=GetIP())
  18462.         hr= GetIP()->Add(&lpObj);
  18463.     CHECK_HRESULT(hr, CVisioToolbarSets, Add);
  18464.  
  18465.     rWrap= lpObj;
  18466.     if (NULL!=lpObj)
  18467.         lpObj->Release();
  18468.  
  18469.     return hr;
  18470. }
  18471.  
  18472.  
  18473. VW_INLINE HRESULT CVisioToolbarSets::AddAtID(long lID, CVisioToolbarSet FAR &rWrap)
  18474. {
  18475.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18476.     IVToolbarSet FAR *lpObj= NULL;
  18477.  
  18478.     CHECK_IP(GetIP(), CVisioToolbarSets, AddAtID);
  18479.     if (NULL!=GetIP())
  18480.         hr= GetIP()->AddAtID(lID, &lpObj);
  18481.     CHECK_HRESULT(hr, CVisioToolbarSets, AddAtID);
  18482.  
  18483.     rWrap= lpObj;
  18484.     if (NULL!=lpObj)
  18485.         lpObj->Release();
  18486.  
  18487.     return hr;
  18488. }
  18489.  
  18490.  
  18491. VW_INLINE HRESULT CVisioToolbarSets::Count(long FAR *lpRet)
  18492. {
  18493.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18494.     CHECK_IP(GetIP(), CVisioToolbarSets, Count);
  18495.     if (NULL!=GetIP())
  18496.         hr= GetIP()->get_Count(lpRet);
  18497.     CHECK_HRESULT(hr, CVisioToolbarSets, Count);
  18498.     return hr;
  18499. }
  18500.  
  18501.  
  18502. VW_INLINE HRESULT CVisioToolbarSets::Parent(CVisioUIObject FAR &rWrap)
  18503. {
  18504.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18505.     IVUIObject FAR *lpObj= NULL;
  18506.  
  18507.     CHECK_IP(GetIP(), CVisioToolbarSets, Parent);
  18508.     if (NULL!=GetIP())
  18509.         hr= GetIP()->get_Parent(&lpObj);
  18510.     CHECK_HRESULT(hr, CVisioToolbarSets, Parent);
  18511.  
  18512.     rWrap= lpObj;
  18513.     if (NULL!=lpObj)
  18514.         lpObj->Release();
  18515.  
  18516.     return hr;
  18517. }
  18518.  
  18519.  
  18520.  
  18521. //  ***************************************************************************
  18522. //  Implementation of class CVisioStatusBarItem
  18523.  
  18524. VW_INLINE HRESULT CVisioStatusBarItem::Delete()
  18525. {
  18526.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18527.     CHECK_IP(GetIP(), CVisioStatusBarItem, Delete);
  18528.     if (NULL!=GetIP())
  18529.         hr= GetIP()->Delete();
  18530.     CHECK_HRESULT(hr, CVisioStatusBarItem, Delete);
  18531.     return hr;
  18532. }
  18533.  
  18534.  
  18535. VW_INLINE HRESULT CVisioStatusBarItem::IconFileName(BSTR_HELPER_CLASS FAR &IconFileName)
  18536. {
  18537.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18538.     CHECK_IP(GetIP(), CVisioStatusBarItem, IconFileName);
  18539.     if (NULL!=GetIP())
  18540.         hr= GetIP()->IconFileName(IconFileName);
  18541.     CHECK_HRESULT(hr, CVisioStatusBarItem, IconFileName);
  18542.     return hr;
  18543. }
  18544.  
  18545.  
  18546. VW_INLINE HRESULT CVisioStatusBarItem::Default(BSTR_HELPER_CLASS FAR &rWrap)
  18547. {
  18548.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18549.     BSTR lpObj= NULL;
  18550.  
  18551.     CHECK_IP(GetIP(), CVisioStatusBarItem, Default);
  18552.     if (NULL!=GetIP())
  18553.         hr= GetIP()->get_Default(&lpObj);
  18554.     CHECK_HRESULT(hr, CVisioStatusBarItem, Default);
  18555.  
  18556.     rWrap= lpObj;
  18557. #ifndef NO_BSTR_HELPER
  18558.     if (NULL!=lpObj)
  18559.         SysFreeString(lpObj);
  18560. #endif  //  NO_BSTR_HELPER
  18561.  
  18562.     return hr;
  18563. }
  18564.  
  18565.  
  18566. VW_INLINE HRESULT CVisioStatusBarItem::Index(long FAR *lpRet)
  18567. {
  18568.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18569.     CHECK_IP(GetIP(), CVisioStatusBarItem, Index);
  18570.     if (NULL!=GetIP())
  18571.         hr= GetIP()->get_Index(lpRet);
  18572.     CHECK_HRESULT(hr, CVisioStatusBarItem, Index);
  18573.     return hr;
  18574. }
  18575.  
  18576.  
  18577. VW_INLINE HRESULT CVisioStatusBarItem::Parent(CVisioStatusBarItems FAR &rWrap)
  18578. {
  18579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18580.     IVStatusBarItems FAR *lpObj= NULL;
  18581.  
  18582.     CHECK_IP(GetIP(), CVisioStatusBarItem, Parent);
  18583.     if (NULL!=GetIP())
  18584.         hr= GetIP()->get_Parent(&lpObj);
  18585.     CHECK_HRESULT(hr, CVisioStatusBarItem, Parent);
  18586.  
  18587.     rWrap= lpObj;
  18588.     if (NULL!=lpObj)
  18589.         lpObj->Release();
  18590.  
  18591.     return hr;
  18592. }
  18593.  
  18594.  
  18595. VW_INLINE HRESULT CVisioStatusBarItem::putCmdNum(VW_CONST short param01)
  18596. {
  18597.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18598.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCmdNum);
  18599.     if (NULL!=GetIP())
  18600.         hr= GetIP()->put_CmdNum(param01);
  18601.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCmdNum);
  18602.     return hr;
  18603. }
  18604.  
  18605.  
  18606. VW_INLINE HRESULT CVisioStatusBarItem::getCmdNum(short FAR *lpRet)
  18607. {
  18608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18609.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCmdNum);
  18610.     if (NULL!=GetIP())
  18611.         hr= GetIP()->get_CmdNum(lpRet);
  18612.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCmdNum);
  18613.     return hr;
  18614. }
  18615.  
  18616.  
  18617. VW_INLINE HRESULT CVisioStatusBarItem::putHelpContextID(VW_CONST short param01)
  18618. {
  18619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18620.     CHECK_IP(GetIP(), CVisioStatusBarItem, putHelpContextID);
  18621.     if (NULL!=GetIP())
  18622.         hr= GetIP()->put_HelpContextID(param01);
  18623.     CHECK_HRESULT(hr, CVisioStatusBarItem, putHelpContextID);
  18624.     return hr;
  18625. }
  18626.  
  18627.  
  18628. VW_INLINE HRESULT CVisioStatusBarItem::getHelpContextID(short FAR *lpRet)
  18629. {
  18630.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18631.     CHECK_IP(GetIP(), CVisioStatusBarItem, getHelpContextID);
  18632.     if (NULL!=GetIP())
  18633.         hr= GetIP()->get_HelpContextID(lpRet);
  18634.     CHECK_HRESULT(hr, CVisioStatusBarItem, getHelpContextID);
  18635.     return hr;
  18636. }
  18637.  
  18638.  
  18639. VW_INLINE HRESULT CVisioStatusBarItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18640. {
  18641.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18642.     CHECK_IP(GetIP(), CVisioStatusBarItem, putActionText);
  18643.     if (NULL!=GetIP())
  18644.         hr= GetIP()->put_ActionText(param01);
  18645.     CHECK_HRESULT(hr, CVisioStatusBarItem, putActionText);
  18646.     return hr;
  18647. }
  18648.  
  18649.  
  18650. VW_INLINE HRESULT CVisioStatusBarItem::getActionText(BSTR_HELPER_CLASS FAR &rWrap)
  18651. {
  18652.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18653.     BSTR lpObj= NULL;
  18654.  
  18655.     CHECK_IP(GetIP(), CVisioStatusBarItem, getActionText);
  18656.     if (NULL!=GetIP())
  18657.         hr= GetIP()->get_ActionText(&lpObj);
  18658.     CHECK_HRESULT(hr, CVisioStatusBarItem, getActionText);
  18659.  
  18660.     rWrap= lpObj;
  18661. #ifndef NO_BSTR_HELPER
  18662.     if (NULL!=lpObj)
  18663.         SysFreeString(lpObj);
  18664. #endif  //  NO_BSTR_HELPER
  18665.  
  18666.     return hr;
  18667. }
  18668.  
  18669.  
  18670. VW_INLINE HRESULT CVisioStatusBarItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18671. {
  18672.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18673.     CHECK_IP(GetIP(), CVisioStatusBarItem, putAddOnName);
  18674.     if (NULL!=GetIP())
  18675.         hr= GetIP()->put_AddOnName(param01);
  18676.     CHECK_HRESULT(hr, CVisioStatusBarItem, putAddOnName);
  18677.     return hr;
  18678. }
  18679.  
  18680.  
  18681. VW_INLINE HRESULT CVisioStatusBarItem::getAddOnName(BSTR_HELPER_CLASS FAR &rWrap)
  18682. {
  18683.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18684.     BSTR lpObj= NULL;
  18685.  
  18686.     CHECK_IP(GetIP(), CVisioStatusBarItem, getAddOnName);
  18687.     if (NULL!=GetIP())
  18688.         hr= GetIP()->get_AddOnName(&lpObj);
  18689.     CHECK_HRESULT(hr, CVisioStatusBarItem, getAddOnName);
  18690.  
  18691.     rWrap= lpObj;
  18692. #ifndef NO_BSTR_HELPER
  18693.     if (NULL!=lpObj)
  18694.         SysFreeString(lpObj);
  18695. #endif  //  NO_BSTR_HELPER
  18696.  
  18697.     return hr;
  18698. }
  18699.  
  18700.  
  18701. VW_INLINE HRESULT CVisioStatusBarItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18702. {
  18703.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18704.     CHECK_IP(GetIP(), CVisioStatusBarItem, putAddOnArgs);
  18705.     if (NULL!=GetIP())
  18706.         hr= GetIP()->put_AddOnArgs(param01);
  18707.     CHECK_HRESULT(hr, CVisioStatusBarItem, putAddOnArgs);
  18708.     return hr;
  18709. }
  18710.  
  18711.  
  18712. VW_INLINE HRESULT CVisioStatusBarItem::getAddOnArgs(BSTR_HELPER_CLASS FAR &rWrap)
  18713. {
  18714.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18715.     BSTR lpObj= NULL;
  18716.  
  18717.     CHECK_IP(GetIP(), CVisioStatusBarItem, getAddOnArgs);
  18718.     if (NULL!=GetIP())
  18719.         hr= GetIP()->get_AddOnArgs(&lpObj);
  18720.     CHECK_HRESULT(hr, CVisioStatusBarItem, getAddOnArgs);
  18721.  
  18722.     rWrap= lpObj;
  18723. #ifndef NO_BSTR_HELPER
  18724.     if (NULL!=lpObj)
  18725.         SysFreeString(lpObj);
  18726. #endif  //  NO_BSTR_HELPER
  18727.  
  18728.     return hr;
  18729. }
  18730.  
  18731.  
  18732. VW_INLINE HRESULT CVisioStatusBarItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18733. {
  18734.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18735.     CHECK_IP(GetIP(), CVisioStatusBarItem, putHelpFile);
  18736.     if (NULL!=GetIP())
  18737.         hr= GetIP()->put_HelpFile(param01);
  18738.     CHECK_HRESULT(hr, CVisioStatusBarItem, putHelpFile);
  18739.     return hr;
  18740. }
  18741.  
  18742.  
  18743. VW_INLINE HRESULT CVisioStatusBarItem::getHelpFile(BSTR_HELPER_CLASS FAR &rWrap)
  18744. {
  18745.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18746.     BSTR lpObj= NULL;
  18747.  
  18748.     CHECK_IP(GetIP(), CVisioStatusBarItem, getHelpFile);
  18749.     if (NULL!=GetIP())
  18750.         hr= GetIP()->get_HelpFile(&lpObj);
  18751.     CHECK_HRESULT(hr, CVisioStatusBarItem, getHelpFile);
  18752.  
  18753.     rWrap= lpObj;
  18754. #ifndef NO_BSTR_HELPER
  18755.     if (NULL!=lpObj)
  18756.         SysFreeString(lpObj);
  18757. #endif  //  NO_BSTR_HELPER
  18758.  
  18759.     return hr;
  18760. }
  18761.  
  18762.  
  18763. VW_INLINE HRESULT CVisioStatusBarItem::putCntrlType(VW_CONST short param01)
  18764. {
  18765.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18766.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCntrlType);
  18767.     if (NULL!=GetIP())
  18768.         hr= GetIP()->put_CntrlType(param01);
  18769.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCntrlType);
  18770.     return hr;
  18771. }
  18772.  
  18773.  
  18774. VW_INLINE HRESULT CVisioStatusBarItem::getCntrlType(short FAR *lpRet)
  18775. {
  18776.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18777.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCntrlType);
  18778.     if (NULL!=GetIP())
  18779.         hr= GetIP()->get_CntrlType(lpRet);
  18780.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCntrlType);
  18781.     return hr;
  18782. }
  18783.  
  18784.  
  18785. VW_INLINE HRESULT CVisioStatusBarItem::putCntrlID(VW_CONST short param01)
  18786. {
  18787.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18788.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCntrlID);
  18789.     if (NULL!=GetIP())
  18790.         hr= GetIP()->put_CntrlID(param01);
  18791.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCntrlID);
  18792.     return hr;
  18793. }
  18794.  
  18795.  
  18796. VW_INLINE HRESULT CVisioStatusBarItem::getCntrlID(short FAR *lpRet)
  18797. {
  18798.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18799.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCntrlID);
  18800.     if (NULL!=GetIP())
  18801.         hr= GetIP()->get_CntrlID(lpRet);
  18802.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCntrlID);
  18803.     return hr;
  18804. }
  18805.  
  18806.  
  18807. VW_INLINE HRESULT CVisioStatusBarItem::putTypeSpecific1(VW_CONST short param01)
  18808. {
  18809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18810.     CHECK_IP(GetIP(), CVisioStatusBarItem, putTypeSpecific1);
  18811.     if (NULL!=GetIP())
  18812.         hr= GetIP()->put_TypeSpecific1(param01);
  18813.     CHECK_HRESULT(hr, CVisioStatusBarItem, putTypeSpecific1);
  18814.     return hr;
  18815. }
  18816.  
  18817.  
  18818. VW_INLINE HRESULT CVisioStatusBarItem::getTypeSpecific1(short FAR *lpRet)
  18819. {
  18820.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18821.     CHECK_IP(GetIP(), CVisioStatusBarItem, getTypeSpecific1);
  18822.     if (NULL!=GetIP())
  18823.         hr= GetIP()->get_TypeSpecific1(lpRet);
  18824.     CHECK_HRESULT(hr, CVisioStatusBarItem, getTypeSpecific1);
  18825.     return hr;
  18826. }
  18827.  
  18828.  
  18829. VW_INLINE HRESULT CVisioStatusBarItem::putPriority(VW_CONST short param01)
  18830. {
  18831.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18832.     CHECK_IP(GetIP(), CVisioStatusBarItem, putPriority);
  18833.     if (NULL!=GetIP())
  18834.         hr= GetIP()->put_Priority(param01);
  18835.     CHECK_HRESULT(hr, CVisioStatusBarItem, putPriority);
  18836.     return hr;
  18837. }
  18838.  
  18839.  
  18840. VW_INLINE HRESULT CVisioStatusBarItem::getPriority(short FAR *lpRet)
  18841. {
  18842.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18843.     CHECK_IP(GetIP(), CVisioStatusBarItem, getPriority);
  18844.     if (NULL!=GetIP())
  18845.         hr= GetIP()->get_Priority(lpRet);
  18846.     CHECK_HRESULT(hr, CVisioStatusBarItem, getPriority);
  18847.     return hr;
  18848. }
  18849.  
  18850.  
  18851. VW_INLINE HRESULT CVisioStatusBarItem::putSpacing(VW_CONST short param01)
  18852. {
  18853.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18854.     CHECK_IP(GetIP(), CVisioStatusBarItem, putSpacing);
  18855.     if (NULL!=GetIP())
  18856.         hr= GetIP()->put_Spacing(param01);
  18857.     CHECK_HRESULT(hr, CVisioStatusBarItem, putSpacing);
  18858.     return hr;
  18859. }
  18860.  
  18861.  
  18862. VW_INLINE HRESULT CVisioStatusBarItem::getSpacing(short FAR *lpRet)
  18863. {
  18864.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18865.     CHECK_IP(GetIP(), CVisioStatusBarItem, getSpacing);
  18866.     if (NULL!=GetIP())
  18867.         hr= GetIP()->get_Spacing(lpRet);
  18868.     CHECK_HRESULT(hr, CVisioStatusBarItem, getSpacing);
  18869.     return hr;
  18870. }
  18871.  
  18872.  
  18873. VW_INLINE HRESULT CVisioStatusBarItem::putTypeSpecific2(VW_CONST short param01)
  18874. {
  18875.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18876.     CHECK_IP(GetIP(), CVisioStatusBarItem, putTypeSpecific2);
  18877.     if (NULL!=GetIP())
  18878.         hr= GetIP()->put_TypeSpecific2(param01);
  18879.     CHECK_HRESULT(hr, CVisioStatusBarItem, putTypeSpecific2);
  18880.     return hr;
  18881. }
  18882.  
  18883.  
  18884. VW_INLINE HRESULT CVisioStatusBarItem::getTypeSpecific2(short FAR *lpRet)
  18885. {
  18886.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18887.     CHECK_IP(GetIP(), CVisioStatusBarItem, getTypeSpecific2);
  18888.     if (NULL!=GetIP())
  18889.         hr= GetIP()->get_TypeSpecific2(lpRet);
  18890.     CHECK_HRESULT(hr, CVisioStatusBarItem, getTypeSpecific2);
  18891.     return hr;
  18892. }
  18893.  
  18894.  
  18895.  
  18896. //  ***************************************************************************
  18897. //  Implementation of class CVisioIEnumVStatusBarItem
  18898.  
  18899.  
  18900. //  ***************************************************************************
  18901. //  Implementation of class CVisioStatusBarItems
  18902.  
  18903. VW_INLINE HRESULT CVisioStatusBarItems::_NewEnum(IUnknown FAR *FAR *lpRet)
  18904. {
  18905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18906.     CHECK_IP(GetIP(), CVisioStatusBarItems, _NewEnum);
  18907.     if (NULL!=GetIP())
  18908.         hr= GetIP()->get__NewEnum(lpRet);
  18909.     CHECK_HRESULT(hr, CVisioStatusBarItems, _NewEnum);
  18910.     return hr;
  18911. }
  18912.  
  18913.  
  18914. VW_INLINE HRESULT CVisioStatusBarItems::Item(long lIndex, CVisioStatusBarItem FAR &rWrap)
  18915. {
  18916.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18917.     IVStatusBarItem FAR *lpObj= NULL;
  18918.  
  18919.     CHECK_IP(GetIP(), CVisioStatusBarItems, Item);
  18920.     if (NULL!=GetIP())
  18921.         hr= GetIP()->get_Item(lIndex, &lpObj);
  18922.     CHECK_HRESULT(hr, CVisioStatusBarItems, Item);
  18923.  
  18924.     rWrap= lpObj;
  18925.     if (NULL!=lpObj)
  18926.         lpObj->Release();
  18927.  
  18928.     return hr;
  18929. }
  18930.  
  18931.  
  18932. VW_INLINE HRESULT CVisioStatusBarItems::Add(CVisioStatusBarItem FAR &rWrap)
  18933. {
  18934.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18935.     IVStatusBarItem FAR *lpObj= NULL;
  18936.  
  18937.     CHECK_IP(GetIP(), CVisioStatusBarItems, Add);
  18938.     if (NULL!=GetIP())
  18939.         hr= GetIP()->Add(&lpObj);
  18940.     CHECK_HRESULT(hr, CVisioStatusBarItems, Add);
  18941.  
  18942.     rWrap= lpObj;
  18943.     if (NULL!=lpObj)
  18944.         lpObj->Release();
  18945.  
  18946.     return hr;
  18947. }
  18948.  
  18949.  
  18950. VW_INLINE HRESULT CVisioStatusBarItems::AddAt(long lIndex, CVisioStatusBarItem FAR &rWrap)
  18951. {
  18952.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18953.     IVStatusBarItem FAR *lpObj= NULL;
  18954.  
  18955.     CHECK_IP(GetIP(), CVisioStatusBarItems, AddAt);
  18956.     if (NULL!=GetIP())
  18957.         hr= GetIP()->AddAt(lIndex, &lpObj);
  18958.     CHECK_HRESULT(hr, CVisioStatusBarItems, AddAt);
  18959.  
  18960.     rWrap= lpObj;
  18961.     if (NULL!=lpObj)
  18962.         lpObj->Release();
  18963.  
  18964.     return hr;
  18965. }
  18966.  
  18967.  
  18968. VW_INLINE HRESULT CVisioStatusBarItems::Count(long FAR *lpRet)
  18969. {
  18970.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18971.     CHECK_IP(GetIP(), CVisioStatusBarItems, Count);
  18972.     if (NULL!=GetIP())
  18973.         hr= GetIP()->get_Count(lpRet);
  18974.     CHECK_HRESULT(hr, CVisioStatusBarItems, Count);
  18975.     return hr;
  18976. }
  18977.  
  18978.  
  18979. VW_INLINE HRESULT CVisioStatusBarItems::Parent(CVisioStatusBar FAR &rWrap)
  18980. {
  18981.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18982.     IVStatusBar FAR *lpObj= NULL;
  18983.  
  18984.     CHECK_IP(GetIP(), CVisioStatusBarItems, Parent);
  18985.     if (NULL!=GetIP())
  18986.         hr= GetIP()->get_Parent(&lpObj);
  18987.     CHECK_HRESULT(hr, CVisioStatusBarItems, Parent);
  18988.  
  18989.     rWrap= lpObj;
  18990.     if (NULL!=lpObj)
  18991.         lpObj->Release();
  18992.  
  18993.     return hr;
  18994. }
  18995.  
  18996.  
  18997.  
  18998. //  ***************************************************************************
  18999. //  Implementation of class CVisioStatusBar
  19000.  
  19001. VW_INLINE HRESULT CVisioStatusBar::Delete()
  19002. {
  19003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19004.     CHECK_IP(GetIP(), CVisioStatusBar, Delete);
  19005.     if (NULL!=GetIP())
  19006.         hr= GetIP()->Delete();
  19007.     CHECK_HRESULT(hr, CVisioStatusBar, Delete);
  19008.     return hr;
  19009. }
  19010.  
  19011.  
  19012. VW_INLINE HRESULT CVisioStatusBar::Default(BSTR_HELPER_CLASS FAR &rWrap)
  19013. {
  19014.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19015.     BSTR lpObj= NULL;
  19016.  
  19017.     CHECK_IP(GetIP(), CVisioStatusBar, Default);
  19018.     if (NULL!=GetIP())
  19019.         hr= GetIP()->get_Default(&lpObj);
  19020.     CHECK_HRESULT(hr, CVisioStatusBar, Default);
  19021.  
  19022.     rWrap= lpObj;
  19023. #ifndef NO_BSTR_HELPER
  19024.     if (NULL!=lpObj)
  19025.         SysFreeString(lpObj);
  19026. #endif  //  NO_BSTR_HELPER
  19027.  
  19028.     return hr;
  19029. }
  19030.  
  19031.  
  19032. VW_INLINE HRESULT CVisioStatusBar::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  19033. {
  19034.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19035.     CHECK_IP(GetIP(), CVisioStatusBar, putCaption);
  19036.     if (NULL!=GetIP())
  19037.         hr= GetIP()->put_Caption(param01);
  19038.     CHECK_HRESULT(hr, CVisioStatusBar, putCaption);
  19039.     return hr;
  19040. }
  19041.  
  19042.  
  19043. VW_INLINE HRESULT CVisioStatusBar::getCaption(BSTR_HELPER_CLASS FAR &rWrap)
  19044. {
  19045.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19046.     BSTR lpObj= NULL;
  19047.  
  19048.     CHECK_IP(GetIP(), CVisioStatusBar, getCaption);
  19049.     if (NULL!=GetIP())
  19050.         hr= GetIP()->get_Caption(&lpObj);
  19051.     CHECK_HRESULT(hr, CVisioStatusBar, getCaption);
  19052.  
  19053.     rWrap= lpObj;
  19054. #ifndef NO_BSTR_HELPER
  19055.     if (NULL!=lpObj)
  19056.         SysFreeString(lpObj);
  19057. #endif  //  NO_BSTR_HELPER
  19058.  
  19059.     return hr;
  19060. }
  19061.  
  19062.  
  19063. VW_INLINE HRESULT CVisioStatusBar::SetID(long FAR *lpRet)
  19064. {
  19065.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19066.     CHECK_IP(GetIP(), CVisioStatusBar, SetID);
  19067.     if (NULL!=GetIP())
  19068.         hr= GetIP()->get_SetID(lpRet);
  19069.     CHECK_HRESULT(hr, CVisioStatusBar, SetID);
  19070.     return hr;
  19071. }
  19072.  
  19073.  
  19074. VW_INLINE HRESULT CVisioStatusBar::StatusBarItems(CVisioStatusBarItems FAR &rWrap)
  19075. {
  19076.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19077.     IVStatusBarItems FAR *lpObj= NULL;
  19078.  
  19079.     CHECK_IP(GetIP(), CVisioStatusBar, StatusBarItems);
  19080.     if (NULL!=GetIP())
  19081.         hr= GetIP()->get_StatusBarItems(&lpObj);
  19082.     CHECK_HRESULT(hr, CVisioStatusBar, StatusBarItems);
  19083.  
  19084.     rWrap= lpObj;
  19085.     if (NULL!=lpObj)
  19086.         lpObj->Release();
  19087.  
  19088.     return hr;
  19089. }
  19090.  
  19091.  
  19092. VW_INLINE HRESULT CVisioStatusBar::Parent(CVisioStatusBars FAR &rWrap)
  19093. {
  19094.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19095.     IVStatusBars FAR *lpObj= NULL;
  19096.  
  19097.     CHECK_IP(GetIP(), CVisioStatusBar, Parent);
  19098.     if (NULL!=GetIP())
  19099.         hr= GetIP()->get_Parent(&lpObj);
  19100.     CHECK_HRESULT(hr, CVisioStatusBar, Parent);
  19101.  
  19102.     rWrap= lpObj;
  19103.     if (NULL!=lpObj)
  19104.         lpObj->Release();
  19105.  
  19106.     return hr;
  19107. }
  19108.  
  19109.  
  19110.  
  19111. //  ***************************************************************************
  19112. //  Implementation of class CVisioIEnumVStatusBar
  19113.  
  19114.  
  19115. //  ***************************************************************************
  19116. //  Implementation of class CVisioStatusBars
  19117.  
  19118. VW_INLINE HRESULT CVisioStatusBars::_NewEnum(IUnknown FAR *FAR *lpRet)
  19119. {
  19120.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19121.     CHECK_IP(GetIP(), CVisioStatusBars, _NewEnum);
  19122.     if (NULL!=GetIP())
  19123.         hr= GetIP()->get__NewEnum(lpRet);
  19124.     CHECK_HRESULT(hr, CVisioStatusBars, _NewEnum);
  19125.     return hr;
  19126. }
  19127.  
  19128.  
  19129. VW_INLINE HRESULT CVisioStatusBars::Item(long lIndex, CVisioStatusBar FAR &rWrap)
  19130. {
  19131.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19132.     IVStatusBar FAR *lpObj= NULL;
  19133.  
  19134.     CHECK_IP(GetIP(), CVisioStatusBars, Item);
  19135.     if (NULL!=GetIP())
  19136.         hr= GetIP()->get_Item(lIndex, &lpObj);
  19137.     CHECK_HRESULT(hr, CVisioStatusBars, Item);
  19138.  
  19139.     rWrap= lpObj;
  19140.     if (NULL!=lpObj)
  19141.         lpObj->Release();
  19142.  
  19143.     return hr;
  19144. }
  19145.  
  19146.  
  19147. VW_INLINE HRESULT CVisioStatusBars::ItemAtID(long lID, CVisioStatusBar FAR &rWrap)
  19148. {
  19149.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19150.     IVStatusBar FAR *lpObj= NULL;
  19151.  
  19152.     CHECK_IP(GetIP(), CVisioStatusBars, ItemAtID);
  19153.     if (NULL!=GetIP())
  19154.         hr= GetIP()->get_ItemAtID(lID, &lpObj);
  19155.     CHECK_HRESULT(hr, CVisioStatusBars, ItemAtID);
  19156.  
  19157.     rWrap= lpObj;
  19158.     if (NULL!=lpObj)
  19159.         lpObj->Release();
  19160.  
  19161.     return hr;
  19162. }
  19163.  
  19164.  
  19165. VW_INLINE HRESULT CVisioStatusBars::Add(CVisioStatusBar FAR &rWrap)
  19166. {
  19167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19168.     IVStatusBar FAR *lpObj= NULL;
  19169.  
  19170.     CHECK_IP(GetIP(), CVisioStatusBars, Add);
  19171.     if (NULL!=GetIP())
  19172.         hr= GetIP()->Add(&lpObj);
  19173.     CHECK_HRESULT(hr, CVisioStatusBars, Add);
  19174.  
  19175.     rWrap= lpObj;
  19176.     if (NULL!=lpObj)
  19177.         lpObj->Release();
  19178.  
  19179.     return hr;
  19180. }
  19181.  
  19182.  
  19183. VW_INLINE HRESULT CVisioStatusBars::AddAtID(long lID, CVisioStatusBar FAR &rWrap)
  19184. {
  19185.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19186.     IVStatusBar FAR *lpObj= NULL;
  19187.  
  19188.     CHECK_IP(GetIP(), CVisioStatusBars, AddAtID);
  19189.     if (NULL!=GetIP())
  19190.         hr= GetIP()->AddAtID(lID, &lpObj);
  19191.     CHECK_HRESULT(hr, CVisioStatusBars, AddAtID);
  19192.  
  19193.     rWrap= lpObj;
  19194.     if (NULL!=lpObj)
  19195.         lpObj->Release();
  19196.  
  19197.     return hr;
  19198. }
  19199.  
  19200.  
  19201. VW_INLINE HRESULT CVisioStatusBars::Count(long FAR *lpRet)
  19202. {
  19203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19204.     CHECK_IP(GetIP(), CVisioStatusBars, Count);
  19205.     if (NULL!=GetIP())
  19206.         hr= GetIP()->get_Count(lpRet);
  19207.     CHECK_HRESULT(hr, CVisioStatusBars, Count);
  19208.     return hr;
  19209. }
  19210.  
  19211.  
  19212. VW_INLINE HRESULT CVisioStatusBars::Parent(CVisioUIObject FAR &rWrap)
  19213. {
  19214.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19215.     IVUIObject FAR *lpObj= NULL;
  19216.  
  19217.     CHECK_IP(GetIP(), CVisioStatusBars, Parent);
  19218.     if (NULL!=GetIP())
  19219.         hr= GetIP()->get_Parent(&lpObj);
  19220.     CHECK_HRESULT(hr, CVisioStatusBars, Parent);
  19221.  
  19222.     rWrap= lpObj;
  19223.     if (NULL!=lpObj)
  19224.         lpObj->Release();
  19225.  
  19226.     return hr;
  19227. }
  19228.  
  19229.  
  19230.  
  19231. //  ***************************************************************************
  19232. //  Implementation of class CVisioAccelItem
  19233.  
  19234. VW_INLINE HRESULT CVisioAccelItem::Delete()
  19235. {
  19236.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19237.     CHECK_IP(GetIP(), CVisioAccelItem, Delete);
  19238.     if (NULL!=GetIP())
  19239.         hr= GetIP()->Delete();
  19240.     CHECK_HRESULT(hr, CVisioAccelItem, Delete);
  19241.     return hr;
  19242. }
  19243.  
  19244.  
  19245. VW_INLINE HRESULT CVisioAccelItem::Default(short FAR *lpRet)
  19246. {
  19247.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19248.     CHECK_IP(GetIP(), CVisioAccelItem, Default);
  19249.     if (NULL!=GetIP())
  19250.         hr= GetIP()->get_Default(lpRet);
  19251.     CHECK_HRESULT(hr, CVisioAccelItem, Default);
  19252.     return hr;
  19253. }
  19254.  
  19255.  
  19256. VW_INLINE HRESULT CVisioAccelItem::putCmdNum(VW_CONST short param01)
  19257. {
  19258.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19259.     CHECK_IP(GetIP(), CVisioAccelItem, putCmdNum);
  19260.     if (NULL!=GetIP())
  19261.         hr= GetIP()->put_CmdNum(param01);
  19262.     CHECK_HRESULT(hr, CVisioAccelItem, putCmdNum);
  19263.     return hr;
  19264. }
  19265.  
  19266.  
  19267. VW_INLINE HRESULT CVisioAccelItem::getCmdNum(short FAR *lpRet)
  19268. {
  19269.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19270.     CHECK_IP(GetIP(), CVisioAccelItem, getCmdNum);
  19271.     if (NULL!=GetIP())
  19272.         hr= GetIP()->get_CmdNum(lpRet);
  19273.     CHECK_HRESULT(hr, CVisioAccelItem, getCmdNum);
  19274.     return hr;
  19275. }
  19276.  
  19277.  
  19278. VW_INLINE HRESULT CVisioAccelItem::putKey(VW_CONST short param01)
  19279. {
  19280.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19281.     CHECK_IP(GetIP(), CVisioAccelItem, putKey);
  19282.     if (NULL!=GetIP())
  19283.         hr= GetIP()->put_Key(param01);
  19284.     CHECK_HRESULT(hr, CVisioAccelItem, putKey);
  19285.     return hr;
  19286. }
  19287.  
  19288.  
  19289. VW_INLINE HRESULT CVisioAccelItem::getKey(short FAR *lpRet)
  19290. {
  19291.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19292.     CHECK_IP(GetIP(), CVisioAccelItem, getKey);
  19293.     if (NULL!=GetIP())
  19294.         hr= GetIP()->get_Key(lpRet);
  19295.     CHECK_HRESULT(hr, CVisioAccelItem, getKey);
  19296.     return hr;
  19297. }
  19298.  
  19299.  
  19300. VW_INLINE HRESULT CVisioAccelItem::putAlt(VW_CONST short param01)
  19301. {
  19302.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19303.     CHECK_IP(GetIP(), CVisioAccelItem, putAlt);
  19304.     if (NULL!=GetIP())
  19305.         hr= GetIP()->put_Alt(param01);
  19306.     CHECK_HRESULT(hr, CVisioAccelItem, putAlt);
  19307.     return hr;
  19308. }
  19309.  
  19310.  
  19311. VW_INLINE HRESULT CVisioAccelItem::getAlt(short FAR *lpRet)
  19312. {
  19313.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19314.     CHECK_IP(GetIP(), CVisioAccelItem, getAlt);
  19315.     if (NULL!=GetIP())
  19316.         hr= GetIP()->get_Alt(lpRet);
  19317.     CHECK_HRESULT(hr, CVisioAccelItem, getAlt);
  19318.     return hr;
  19319. }
  19320.  
  19321.  
  19322. VW_INLINE HRESULT CVisioAccelItem::putShift(VW_CONST short param01)
  19323. {
  19324.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19325.     CHECK_IP(GetIP(), CVisioAccelItem, putShift);
  19326.     if (NULL!=GetIP())
  19327.         hr= GetIP()->put_Shift(param01);
  19328.     CHECK_HRESULT(hr, CVisioAccelItem, putShift);
  19329.     return hr;
  19330. }
  19331.  
  19332.  
  19333. VW_INLINE HRESULT CVisioAccelItem::getShift(short FAR *lpRet)
  19334. {
  19335.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19336.     CHECK_IP(GetIP(), CVisioAccelItem, getShift);
  19337.     if (NULL!=GetIP())
  19338.         hr= GetIP()->get_Shift(lpRet);
  19339.     CHECK_HRESULT(hr, CVisioAccelItem, getShift);
  19340.     return hr;
  19341. }
  19342.  
  19343.  
  19344. VW_INLINE HRESULT CVisioAccelItem::putControl(VW_CONST short param01)
  19345. {
  19346.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19347.     CHECK_IP(GetIP(), CVisioAccelItem, putControl);
  19348.     if (NULL!=GetIP())
  19349.         hr= GetIP()->put_Control(param01);
  19350.     CHECK_HRESULT(hr, CVisioAccelItem, putControl);
  19351.     return hr;
  19352. }
  19353.  
  19354.  
  19355. VW_INLINE HRESULT CVisioAccelItem::getControl(short FAR *lpRet)
  19356. {
  19357.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19358.     CHECK_IP(GetIP(), CVisioAccelItem, getControl);
  19359.     if (NULL!=GetIP())
  19360.         hr= GetIP()->get_Control(lpRet);
  19361.     CHECK_HRESULT(hr, CVisioAccelItem, getControl);
  19362.     return hr;
  19363. }
  19364.  
  19365.  
  19366. VW_INLINE HRESULT CVisioAccelItem::Parent(CVisioAccelItems FAR &rWrap)
  19367. {
  19368.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19369.     IVAccelItems FAR *lpObj= NULL;
  19370.  
  19371.     CHECK_IP(GetIP(), CVisioAccelItem, Parent);
  19372.     if (NULL!=GetIP())
  19373.         hr= GetIP()->get_Parent(&lpObj);
  19374.     CHECK_HRESULT(hr, CVisioAccelItem, Parent);
  19375.  
  19376.     rWrap= lpObj;
  19377.     if (NULL!=lpObj)
  19378.         lpObj->Release();
  19379.  
  19380.     return hr;
  19381. }
  19382.  
  19383.  
  19384.  
  19385. //  ***************************************************************************
  19386. //  Implementation of class CVisioIEnumVAccelItem
  19387.  
  19388.  
  19389. //  ***************************************************************************
  19390. //  Implementation of class CVisioAccelItems
  19391.  
  19392. VW_INLINE HRESULT CVisioAccelItems::_NewEnum(IUnknown FAR *FAR *lpRet)
  19393. {
  19394.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19395.     CHECK_IP(GetIP(), CVisioAccelItems, _NewEnum);
  19396.     if (NULL!=GetIP())
  19397.         hr= GetIP()->get__NewEnum(lpRet);
  19398.     CHECK_HRESULT(hr, CVisioAccelItems, _NewEnum);
  19399.     return hr;
  19400. }
  19401.  
  19402.  
  19403. VW_INLINE HRESULT CVisioAccelItems::Item(long lIndex, CVisioAccelItem FAR &rWrap)
  19404. {
  19405.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19406.     IVAccelItem FAR *lpObj= NULL;
  19407.  
  19408.     CHECK_IP(GetIP(), CVisioAccelItems, Item);
  19409.     if (NULL!=GetIP())
  19410.         hr= GetIP()->get_Item(lIndex, &lpObj);
  19411.     CHECK_HRESULT(hr, CVisioAccelItems, Item);
  19412.  
  19413.     rWrap= lpObj;
  19414.     if (NULL!=lpObj)
  19415.         lpObj->Release();
  19416.  
  19417.     return hr;
  19418. }
  19419.  
  19420.  
  19421. VW_INLINE HRESULT CVisioAccelItems::Add(CVisioAccelItem FAR &rWrap)
  19422. {
  19423.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19424.     IVAccelItem FAR *lpObj= NULL;
  19425.  
  19426.     CHECK_IP(GetIP(), CVisioAccelItems, Add);
  19427.     if (NULL!=GetIP())
  19428.         hr= GetIP()->Add(&lpObj);
  19429.     CHECK_HRESULT(hr, CVisioAccelItems, Add);
  19430.  
  19431.     rWrap= lpObj;
  19432.     if (NULL!=lpObj)
  19433.         lpObj->Release();
  19434.  
  19435.     return hr;
  19436. }
  19437.  
  19438.  
  19439. VW_INLINE HRESULT CVisioAccelItems::Count(long FAR *lpRet)
  19440. {
  19441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19442.     CHECK_IP(GetIP(), CVisioAccelItems, Count);
  19443.     if (NULL!=GetIP())
  19444.         hr= GetIP()->get_Count(lpRet);
  19445.     CHECK_HRESULT(hr, CVisioAccelItems, Count);
  19446.     return hr;
  19447. }
  19448.  
  19449.  
  19450. VW_INLINE HRESULT CVisioAccelItems::Parent(CVisioAccelTable FAR &rWrap)
  19451. {
  19452.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19453.     IVAccelTable FAR *lpObj= NULL;
  19454.  
  19455.     CHECK_IP(GetIP(), CVisioAccelItems, Parent);
  19456.     if (NULL!=GetIP())
  19457.         hr= GetIP()->get_Parent(&lpObj);
  19458.     CHECK_HRESULT(hr, CVisioAccelItems, Parent);
  19459.  
  19460.     rWrap= lpObj;
  19461.     if (NULL!=lpObj)
  19462.         lpObj->Release();
  19463.  
  19464.     return hr;
  19465. }
  19466.  
  19467.  
  19468.  
  19469. //  ***************************************************************************
  19470. //  Implementation of class CVisioAccelTable
  19471.  
  19472. VW_INLINE HRESULT CVisioAccelTable::Delete()
  19473. {
  19474.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19475.     CHECK_IP(GetIP(), CVisioAccelTable, Delete);
  19476.     if (NULL!=GetIP())
  19477.         hr= GetIP()->Delete();
  19478.     CHECK_HRESULT(hr, CVisioAccelTable, Delete);
  19479.     return hr;
  19480. }
  19481.  
  19482.  
  19483. VW_INLINE HRESULT CVisioAccelTable::Default(BSTR_HELPER_CLASS FAR &rWrap)
  19484. {
  19485.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19486.     BSTR lpObj= NULL;
  19487.  
  19488.     CHECK_IP(GetIP(), CVisioAccelTable, Default);
  19489.     if (NULL!=GetIP())
  19490.         hr= GetIP()->get_Default(&lpObj);
  19491.     CHECK_HRESULT(hr, CVisioAccelTable, Default);
  19492.  
  19493.     rWrap= lpObj;
  19494. #ifndef NO_BSTR_HELPER
  19495.     if (NULL!=lpObj)
  19496.         SysFreeString(lpObj);
  19497. #endif  //  NO_BSTR_HELPER
  19498.  
  19499.     return hr;
  19500. }
  19501.  
  19502.  
  19503. VW_INLINE HRESULT CVisioAccelTable::putTableName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  19504. {
  19505.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19506.     CHECK_IP(GetIP(), CVisioAccelTable, putTableName);
  19507.     if (NULL!=GetIP())
  19508.         hr= GetIP()->put_TableName(param01);
  19509.     CHECK_HRESULT(hr, CVisioAccelTable, putTableName);
  19510.     return hr;
  19511. }
  19512.  
  19513.  
  19514. VW_INLINE HRESULT CVisioAccelTable::getTableName(BSTR_HELPER_CLASS FAR &rWrap)
  19515. {
  19516.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19517.     BSTR lpObj= NULL;
  19518.  
  19519.     CHECK_IP(GetIP(), CVisioAccelTable, getTableName);
  19520.     if (NULL!=GetIP())
  19521.         hr= GetIP()->get_TableName(&lpObj);
  19522.     CHECK_HRESULT(hr, CVisioAccelTable, getTableName);
  19523.  
  19524.     rWrap= lpObj;
  19525. #ifndef NO_BSTR_HELPER
  19526.     if (NULL!=lpObj)
  19527.         SysFreeString(lpObj);
  19528. #endif  //  NO_BSTR_HELPER
  19529.  
  19530.     return hr;
  19531. }
  19532.  
  19533.  
  19534. VW_INLINE HRESULT CVisioAccelTable::SetID(long FAR *lpRet)
  19535. {
  19536.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19537.     CHECK_IP(GetIP(), CVisioAccelTable, SetID);
  19538.     if (NULL!=GetIP())
  19539.         hr= GetIP()->get_SetID(lpRet);
  19540.     CHECK_HRESULT(hr, CVisioAccelTable, SetID);
  19541.     return hr;
  19542. }
  19543.  
  19544.  
  19545. VW_INLINE HRESULT CVisioAccelTable::AccelItems(CVisioAccelItems FAR &rWrap)
  19546. {
  19547.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19548.     IVAccelItems FAR *lpObj= NULL;
  19549.  
  19550.     CHECK_IP(GetIP(), CVisioAccelTable, AccelItems);
  19551.     if (NULL!=GetIP())
  19552.         hr= GetIP()->get_AccelItems(&lpObj);
  19553.     CHECK_HRESULT(hr, CVisioAccelTable, AccelItems);
  19554.  
  19555.     rWrap= lpObj;
  19556.     if (NULL!=lpObj)
  19557.         lpObj->Release();
  19558.  
  19559.     return hr;
  19560. }
  19561.  
  19562.  
  19563. VW_INLINE HRESULT CVisioAccelTable::Parent(CVisioAccelTables FAR &rWrap)
  19564. {
  19565.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19566.     IVAccelTables FAR *lpObj= NULL;
  19567.  
  19568.     CHECK_IP(GetIP(), CVisioAccelTable, Parent);
  19569.     if (NULL!=GetIP())
  19570.         hr= GetIP()->get_Parent(&lpObj);
  19571.     CHECK_HRESULT(hr, CVisioAccelTable, Parent);
  19572.  
  19573.     rWrap= lpObj;
  19574.     if (NULL!=lpObj)
  19575.         lpObj->Release();
  19576.  
  19577.     return hr;
  19578. }
  19579.  
  19580.  
  19581.  
  19582. //  ***************************************************************************
  19583. //  Implementation of class CVisioIEnumVAccelTable
  19584.  
  19585.  
  19586. //  ***************************************************************************
  19587. //  Implementation of class CVisioAccelTables
  19588.  
  19589. VW_INLINE HRESULT CVisioAccelTables::_NewEnum(IUnknown FAR *FAR *lpRet)
  19590. {
  19591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19592.     CHECK_IP(GetIP(), CVisioAccelTables, _NewEnum);
  19593.     if (NULL!=GetIP())
  19594.         hr= GetIP()->get__NewEnum(lpRet);
  19595.     CHECK_HRESULT(hr, CVisioAccelTables, _NewEnum);
  19596.     return hr;
  19597. }
  19598.  
  19599.  
  19600. VW_INLINE HRESULT CVisioAccelTables::Item(long lIndex, CVisioAccelTable FAR &rWrap)
  19601. {
  19602.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19603.     IVAccelTable FAR *lpObj= NULL;
  19604.  
  19605.     CHECK_IP(GetIP(), CVisioAccelTables, Item);
  19606.     if (NULL!=GetIP())
  19607.         hr= GetIP()->get_Item(lIndex, &lpObj);
  19608.     CHECK_HRESULT(hr, CVisioAccelTables, Item);
  19609.  
  19610.     rWrap= lpObj;
  19611.     if (NULL!=lpObj)
  19612.         lpObj->Release();
  19613.  
  19614.     return hr;
  19615. }
  19616.  
  19617.  
  19618. VW_INLINE HRESULT CVisioAccelTables::ItemAtID(long lID, CVisioAccelTable FAR &rWrap)
  19619. {
  19620.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19621.     IVAccelTable FAR *lpObj= NULL;
  19622.  
  19623.     CHECK_IP(GetIP(), CVisioAccelTables, ItemAtID);
  19624.     if (NULL!=GetIP())
  19625.         hr= GetIP()->get_ItemAtID(lID, &lpObj);
  19626.     CHECK_HRESULT(hr, CVisioAccelTables, ItemAtID);
  19627.  
  19628.     rWrap= lpObj;
  19629.     if (NULL!=lpObj)
  19630.         lpObj->Release();
  19631.  
  19632.     return hr;
  19633. }
  19634.  
  19635.  
  19636. VW_INLINE HRESULT CVisioAccelTables::Add(CVisioAccelTable FAR &rWrap)
  19637. {
  19638.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19639.     IVAccelTable FAR *lpObj= NULL;
  19640.  
  19641.     CHECK_IP(GetIP(), CVisioAccelTables, Add);
  19642.     if (NULL!=GetIP())
  19643.         hr= GetIP()->Add(&lpObj);
  19644.     CHECK_HRESULT(hr, CVisioAccelTables, Add);
  19645.  
  19646.     rWrap= lpObj;
  19647.     if (NULL!=lpObj)
  19648.         lpObj->Release();
  19649.  
  19650.     return hr;
  19651. }
  19652.  
  19653.  
  19654. VW_INLINE HRESULT CVisioAccelTables::AddAtID(long lID, CVisioAccelTable FAR &rWrap)
  19655. {
  19656.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19657.     IVAccelTable FAR *lpObj= NULL;
  19658.  
  19659.     CHECK_IP(GetIP(), CVisioAccelTables, AddAtID);
  19660.     if (NULL!=GetIP())
  19661.         hr= GetIP()->AddAtID(lID, &lpObj);
  19662.     CHECK_HRESULT(hr, CVisioAccelTables, AddAtID);
  19663.  
  19664.     rWrap= lpObj;
  19665.     if (NULL!=lpObj)
  19666.         lpObj->Release();
  19667.  
  19668.     return hr;
  19669. }
  19670.  
  19671.  
  19672. VW_INLINE HRESULT CVisioAccelTables::Count(long FAR *lpRet)
  19673. {
  19674.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19675.     CHECK_IP(GetIP(), CVisioAccelTables, Count);
  19676.     if (NULL!=GetIP())
  19677.         hr= GetIP()->get_Count(lpRet);
  19678.     CHECK_HRESULT(hr, CVisioAccelTables, Count);
  19679.     return hr;
  19680. }
  19681.  
  19682.  
  19683. VW_INLINE HRESULT CVisioAccelTables::Parent(CVisioUIObject FAR &rWrap)
  19684. {
  19685.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19686.     IVUIObject FAR *lpObj= NULL;
  19687.  
  19688.     CHECK_IP(GetIP(), CVisioAccelTables, Parent);
  19689.     if (NULL!=GetIP())
  19690.         hr= GetIP()->get_Parent(&lpObj);
  19691.     CHECK_HRESULT(hr, CVisioAccelTables, Parent);
  19692.  
  19693.     rWrap= lpObj;
  19694.     if (NULL!=lpObj)
  19695.         lpObj->Release();
  19696.  
  19697.     return hr;
  19698. }
  19699.  
  19700.  
  19701.  
  19702. //  ***************************************************************************
  19703. //  Implementation of class CVisioUIObject
  19704.  
  19705. VW_INLINE HRESULT CVisioUIObject::Delete()
  19706. {
  19707.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19708.     CHECK_IP(GetIP(), CVisioUIObject, Delete);
  19709.     if (NULL!=GetIP())
  19710.         hr= GetIP()->Delete();
  19711.     CHECK_HRESULT(hr, CVisioUIObject, Delete);
  19712.     return hr;
  19713. }
  19714.  
  19715.  
  19716. VW_INLINE HRESULT CVisioUIObject::Default(BSTR_HELPER_CLASS FAR &rWrap)
  19717. {
  19718.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19719.     BSTR lpObj= NULL;
  19720.  
  19721.     CHECK_IP(GetIP(), CVisioUIObject, Default);
  19722.     if (NULL!=GetIP())
  19723.         hr= GetIP()->get_Default(&lpObj);
  19724.     CHECK_HRESULT(hr, CVisioUIObject, Default);
  19725.  
  19726.     rWrap= lpObj;
  19727. #ifndef NO_BSTR_HELPER
  19728.     if (NULL!=lpObj)
  19729.         SysFreeString(lpObj);
  19730. #endif  //  NO_BSTR_HELPER
  19731.  
  19732.     return hr;
  19733. }
  19734.  
  19735.  
  19736. VW_INLINE HRESULT CVisioUIObject::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  19737. {
  19738.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19739.     CHECK_IP(GetIP(), CVisioUIObject, putName);
  19740.     if (NULL!=GetIP())
  19741.         hr= GetIP()->put_Name(param01);
  19742.     CHECK_HRESULT(hr, CVisioUIObject, putName);
  19743.     return hr;
  19744. }
  19745.  
  19746.  
  19747. VW_INLINE HRESULT CVisioUIObject::getName(BSTR_HELPER_CLASS FAR &rWrap)
  19748. {
  19749.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19750.     BSTR lpObj= NULL;
  19751.  
  19752.     CHECK_IP(GetIP(), CVisioUIObject, getName);
  19753.     if (NULL!=GetIP())
  19754.         hr= GetIP()->get_Name(&lpObj);
  19755.     CHECK_HRESULT(hr, CVisioUIObject, getName);
  19756.  
  19757.     rWrap= lpObj;
  19758. #ifndef NO_BSTR_HELPER
  19759.     if (NULL!=lpObj)
  19760.         SysFreeString(lpObj);
  19761. #endif  //  NO_BSTR_HELPER
  19762.  
  19763.     return hr;
  19764. }
  19765.  
  19766.  
  19767. VW_INLINE HRESULT CVisioUIObject::putFlavor(VW_CONST short param01)
  19768. {
  19769.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19770.     CHECK_IP(GetIP(), CVisioUIObject, putFlavor);
  19771.     if (NULL!=GetIP())
  19772.         hr= GetIP()->put_Flavor(param01);
  19773.     CHECK_HRESULT(hr, CVisioUIObject, putFlavor);
  19774.     return hr;
  19775. }
  19776.  
  19777.  
  19778. VW_INLINE HRESULT CVisioUIObject::getFlavor(short FAR *lpRet)
  19779. {
  19780.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19781.     CHECK_IP(GetIP(), CVisioUIObject, getFlavor);
  19782.     if (NULL!=GetIP())
  19783.         hr= GetIP()->get_Flavor(lpRet);
  19784.     CHECK_HRESULT(hr, CVisioUIObject, getFlavor);
  19785.     return hr;
  19786. }
  19787.  
  19788.  
  19789. VW_INLINE HRESULT CVisioUIObject::MenuSets(CVisioMenuSets FAR &rWrap)
  19790. {
  19791.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19792.     IVMenuSets FAR *lpObj= NULL;
  19793.  
  19794.     CHECK_IP(GetIP(), CVisioUIObject, MenuSets);
  19795.     if (NULL!=GetIP())
  19796.         hr= GetIP()->get_MenuSets(&lpObj);
  19797.     CHECK_HRESULT(hr, CVisioUIObject, MenuSets);
  19798.  
  19799.     rWrap= lpObj;
  19800.     if (NULL!=lpObj)
  19801.         lpObj->Release();
  19802.  
  19803.     return hr;
  19804. }
  19805.  
  19806.  
  19807. VW_INLINE HRESULT CVisioUIObject::ToolbarSets(CVisioToolbarSets FAR &rWrap)
  19808. {
  19809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19810.     IVToolbarSets FAR *lpObj= NULL;
  19811.  
  19812.     CHECK_IP(GetIP(), CVisioUIObject, ToolbarSets);
  19813.     if (NULL!=GetIP())
  19814.         hr= GetIP()->get_ToolbarSets(&lpObj);
  19815.     CHECK_HRESULT(hr, CVisioUIObject, ToolbarSets);
  19816.  
  19817.     rWrap= lpObj;
  19818.     if (NULL!=lpObj)
  19819.         lpObj->Release();
  19820.  
  19821.     return hr;
  19822. }
  19823.  
  19824.  
  19825. VW_INLINE HRESULT CVisioUIObject::StatusBars(CVisioStatusBars FAR &rWrap)
  19826. {
  19827.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19828.     IVStatusBars FAR *lpObj= NULL;
  19829.  
  19830.     CHECK_IP(GetIP(), CVisioUIObject, StatusBars);
  19831.     if (NULL!=GetIP())
  19832.         hr= GetIP()->get_StatusBars(&lpObj);
  19833.     CHECK_HRESULT(hr, CVisioUIObject, StatusBars);
  19834.  
  19835.     rWrap= lpObj;
  19836.     if (NULL!=lpObj)
  19837.         lpObj->Release();
  19838.  
  19839.     return hr;
  19840. }
  19841.  
  19842.  
  19843. VW_INLINE HRESULT CVisioUIObject::AccelTables(CVisioAccelTables FAR &rWrap)
  19844. {
  19845.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19846.     IVAccelTables FAR *lpObj= NULL;
  19847.  
  19848.     CHECK_IP(GetIP(), CVisioUIObject, AccelTables);
  19849.     if (NULL!=GetIP())
  19850.         hr= GetIP()->get_AccelTables(&lpObj);
  19851.     CHECK_HRESULT(hr, CVisioUIObject, AccelTables);
  19852.  
  19853.     rWrap= lpObj;
  19854.     if (NULL!=lpObj)
  19855.         lpObj->Release();
  19856.  
  19857.     return hr;
  19858. }
  19859.  
  19860.  
  19861. VW_INLINE HRESULT CVisioUIObject::SaveToFile(BSTR_HELPER_CLASS FAR &FileName)
  19862. {
  19863.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19864.     CHECK_IP(GetIP(), CVisioUIObject, SaveToFile);
  19865.     if (NULL!=GetIP())
  19866.         hr= GetIP()->SaveToFile(FileName);
  19867.     CHECK_HRESULT(hr, CVisioUIObject, SaveToFile);
  19868.     return hr;
  19869. }
  19870.  
  19871.  
  19872. VW_INLINE HRESULT CVisioUIObject::LoadFromFile(BSTR_HELPER_CLASS FAR &FileName)
  19873. {
  19874.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19875.     CHECK_IP(GetIP(), CVisioUIObject, LoadFromFile);
  19876.     if (NULL!=GetIP())
  19877.         hr= GetIP()->LoadFromFile(FileName);
  19878.     CHECK_HRESULT(hr, CVisioUIObject, LoadFromFile);
  19879.     return hr;
  19880. }
  19881.  
  19882.  
  19883. VW_INLINE HRESULT CVisioUIObject::UpdateUI()
  19884. {
  19885.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19886.     CHECK_IP(GetIP(), CVisioUIObject, UpdateUI);
  19887.     if (NULL!=GetIP())
  19888.         hr= GetIP()->UpdateUI();
  19889.     CHECK_HRESULT(hr, CVisioUIObject, UpdateUI);
  19890.     return hr;
  19891. }
  19892.  
  19893.  
  19894.  
  19895. //  ***************************************************************************
  19896. //  Implementation of class CVisioHyperlink
  19897.  
  19898. VW_INLINE HRESULT CVisioHyperlink::getDescription(BSTR_HELPER_CLASS FAR &rWrap)
  19899. {
  19900.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19901.     BSTR lpObj= NULL;
  19902.  
  19903.     CHECK_IP(GetIP(), CVisioHyperlink, getDescription);
  19904.     if (NULL!=GetIP())
  19905.         hr= GetIP()->get_Description(&lpObj);
  19906.     CHECK_HRESULT(hr, CVisioHyperlink, getDescription);
  19907.  
  19908.     rWrap= lpObj;
  19909. #ifndef NO_BSTR_HELPER
  19910.     if (NULL!=lpObj)
  19911.         SysFreeString(lpObj);
  19912. #endif  //  NO_BSTR_HELPER
  19913.  
  19914.     return hr;
  19915. }
  19916.  
  19917.  
  19918. VW_INLINE HRESULT CVisioHyperlink::putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  19919. {
  19920.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19921.     CHECK_IP(GetIP(), CVisioHyperlink, putDescription);
  19922.     if (NULL!=GetIP())
  19923.         hr= GetIP()->put_Description(param01);
  19924.     CHECK_HRESULT(hr, CVisioHyperlink, putDescription);
  19925.     return hr;
  19926. }
  19927.  
  19928.  
  19929. VW_INLINE HRESULT CVisioHyperlink::Application(CVisioApplication FAR &rWrap)
  19930. {
  19931.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19932.     IVApplication FAR *lpObj= NULL;
  19933.  
  19934.     CHECK_IP(GetIP(), CVisioHyperlink, Application);
  19935.     if (NULL!=GetIP())
  19936.         hr= GetIP()->get_Application(&lpObj);
  19937.     CHECK_HRESULT(hr, CVisioHyperlink, Application);
  19938.  
  19939.     rWrap= lpObj;
  19940.     if (NULL!=lpObj)
  19941.         lpObj->Release();
  19942.  
  19943.     return hr;
  19944. }
  19945.  
  19946.  
  19947. VW_INLINE HRESULT CVisioHyperlink::Shape(CVisioShape FAR &rWrap)
  19948. {
  19949.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19950.     IVShape FAR *lpObj= NULL;
  19951.  
  19952.     CHECK_IP(GetIP(), CVisioHyperlink, Shape);
  19953.     if (NULL!=GetIP())
  19954.         hr= GetIP()->get_Shape(&lpObj);
  19955.     CHECK_HRESULT(hr, CVisioHyperlink, Shape);
  19956.  
  19957.     rWrap= lpObj;
  19958.     if (NULL!=lpObj)
  19959.         lpObj->Release();
  19960.  
  19961.     return hr;
  19962. }
  19963.  
  19964.  
  19965. VW_INLINE HRESULT CVisioHyperlink::ObjectType(short FAR *lpRet)
  19966. {
  19967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19968.     CHECK_IP(GetIP(), CVisioHyperlink, ObjectType);
  19969.     if (NULL!=GetIP())
  19970.         hr= GetIP()->get_ObjectType(lpRet);
  19971.     CHECK_HRESULT(hr, CVisioHyperlink, ObjectType);
  19972.     return hr;
  19973. }
  19974.  
  19975.  
  19976. VW_INLINE HRESULT CVisioHyperlink::Stat(short FAR *lpRet)
  19977. {
  19978.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19979.     CHECK_IP(GetIP(), CVisioHyperlink, Stat);
  19980.     if (NULL!=GetIP())
  19981.         hr= GetIP()->get_Stat(lpRet);
  19982.     CHECK_HRESULT(hr, CVisioHyperlink, Stat);
  19983.     return hr;
  19984. }
  19985.  
  19986.  
  19987. VW_INLINE HRESULT CVisioHyperlink::getAddress(BSTR_HELPER_CLASS FAR &rWrap)
  19988. {
  19989.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19990.     BSTR lpObj= NULL;
  19991.  
  19992.     CHECK_IP(GetIP(), CVisioHyperlink, getAddress);
  19993.     if (NULL!=GetIP())
  19994.         hr= GetIP()->get_Address(&lpObj);
  19995.     CHECK_HRESULT(hr, CVisioHyperlink, getAddress);
  19996.  
  19997.     rWrap= lpObj;
  19998. #ifndef NO_BSTR_HELPER
  19999.     if (NULL!=lpObj)
  20000.         SysFreeString(lpObj);
  20001. #endif  //  NO_BSTR_HELPER
  20002.  
  20003.     return hr;
  20004. }
  20005.  
  20006.  
  20007. VW_INLINE HRESULT CVisioHyperlink::putAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20008. {
  20009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20010.     CHECK_IP(GetIP(), CVisioHyperlink, putAddress);
  20011.     if (NULL!=GetIP())
  20012.         hr= GetIP()->put_Address(param01);
  20013.     CHECK_HRESULT(hr, CVisioHyperlink, putAddress);
  20014.     return hr;
  20015. }
  20016.  
  20017.  
  20018. VW_INLINE HRESULT CVisioHyperlink::getSubAddress(BSTR_HELPER_CLASS FAR &rWrap)
  20019. {
  20020.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20021.     BSTR lpObj= NULL;
  20022.  
  20023.     CHECK_IP(GetIP(), CVisioHyperlink, getSubAddress);
  20024.     if (NULL!=GetIP())
  20025.         hr= GetIP()->get_SubAddress(&lpObj);
  20026.     CHECK_HRESULT(hr, CVisioHyperlink, getSubAddress);
  20027.  
  20028.     rWrap= lpObj;
  20029. #ifndef NO_BSTR_HELPER
  20030.     if (NULL!=lpObj)
  20031.         SysFreeString(lpObj);
  20032. #endif  //  NO_BSTR_HELPER
  20033.  
  20034.     return hr;
  20035. }
  20036.  
  20037.  
  20038. VW_INLINE HRESULT CVisioHyperlink::putSubAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20039. {
  20040.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20041.     CHECK_IP(GetIP(), CVisioHyperlink, putSubAddress);
  20042.     if (NULL!=GetIP())
  20043.         hr= GetIP()->put_SubAddress(param01);
  20044.     CHECK_HRESULT(hr, CVisioHyperlink, putSubAddress);
  20045.     return hr;
  20046. }
  20047.  
  20048.  
  20049. VW_INLINE HRESULT CVisioHyperlink::getNewWindow(short FAR *lpRet)
  20050. {
  20051.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20052.     CHECK_IP(GetIP(), CVisioHyperlink, getNewWindow);
  20053.     if (NULL!=GetIP())
  20054.         hr= GetIP()->get_NewWindow(lpRet);
  20055.     CHECK_HRESULT(hr, CVisioHyperlink, getNewWindow);
  20056.     return hr;
  20057. }
  20058.  
  20059.  
  20060. VW_INLINE HRESULT CVisioHyperlink::putNewWindow(VW_CONST short param01)
  20061. {
  20062.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20063.     CHECK_IP(GetIP(), CVisioHyperlink, putNewWindow);
  20064.     if (NULL!=GetIP())
  20065.         hr= GetIP()->put_NewWindow(param01);
  20066.     CHECK_HRESULT(hr, CVisioHyperlink, putNewWindow);
  20067.     return hr;
  20068. }
  20069.  
  20070.  
  20071. VW_INLINE HRESULT CVisioHyperlink::getExtraInfo(BSTR_HELPER_CLASS FAR &rWrap)
  20072. {
  20073.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20074.     BSTR lpObj= NULL;
  20075.  
  20076.     CHECK_IP(GetIP(), CVisioHyperlink, getExtraInfo);
  20077.     if (NULL!=GetIP())
  20078.         hr= GetIP()->get_ExtraInfo(&lpObj);
  20079.     CHECK_HRESULT(hr, CVisioHyperlink, getExtraInfo);
  20080.  
  20081.     rWrap= lpObj;
  20082. #ifndef NO_BSTR_HELPER
  20083.     if (NULL!=lpObj)
  20084.         SysFreeString(lpObj);
  20085. #endif  //  NO_BSTR_HELPER
  20086.  
  20087.     return hr;
  20088. }
  20089.  
  20090.  
  20091. VW_INLINE HRESULT CVisioHyperlink::putExtraInfo(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20092. {
  20093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20094.     CHECK_IP(GetIP(), CVisioHyperlink, putExtraInfo);
  20095.     if (NULL!=GetIP())
  20096.         hr= GetIP()->put_ExtraInfo(param01);
  20097.     CHECK_HRESULT(hr, CVisioHyperlink, putExtraInfo);
  20098.     return hr;
  20099. }
  20100.  
  20101.  
  20102. VW_INLINE HRESULT CVisioHyperlink::getFrame(BSTR_HELPER_CLASS FAR &rWrap)
  20103. {
  20104.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20105.     BSTR lpObj= NULL;
  20106.  
  20107.     CHECK_IP(GetIP(), CVisioHyperlink, getFrame);
  20108.     if (NULL!=GetIP())
  20109.         hr= GetIP()->get_Frame(&lpObj);
  20110.     CHECK_HRESULT(hr, CVisioHyperlink, getFrame);
  20111.  
  20112.     rWrap= lpObj;
  20113. #ifndef NO_BSTR_HELPER
  20114.     if (NULL!=lpObj)
  20115.         SysFreeString(lpObj);
  20116. #endif  //  NO_BSTR_HELPER
  20117.  
  20118.     return hr;
  20119. }
  20120.  
  20121.  
  20122. VW_INLINE HRESULT CVisioHyperlink::putFrame(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20123. {
  20124.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20125.     CHECK_IP(GetIP(), CVisioHyperlink, putFrame);
  20126.     if (NULL!=GetIP())
  20127.         hr= GetIP()->put_Frame(param01);
  20128.     CHECK_HRESULT(hr, CVisioHyperlink, putFrame);
  20129.     return hr;
  20130. }
  20131.  
  20132.  
  20133. VW_INLINE HRESULT CVisioHyperlink::AddToFavorites(VARIANT_HELPER_CLASS FAR &FavoritesTitle)
  20134. {
  20135.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20136.     CHECK_IP(GetIP(), CVisioHyperlink, AddToFavorites);
  20137.     if (NULL!=GetIP())
  20138.         hr= GetIP()->AddToFavorites(FavoritesTitle);
  20139.     CHECK_HRESULT(hr, CVisioHyperlink, AddToFavorites);
  20140.     return hr;
  20141. }
  20142.  
  20143.  
  20144. VW_INLINE HRESULT CVisioHyperlink::Follow()
  20145. {
  20146.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20147.     CHECK_IP(GetIP(), CVisioHyperlink, Follow);
  20148.     if (NULL!=GetIP())
  20149.         hr= GetIP()->Follow();
  20150.     CHECK_HRESULT(hr, CVisioHyperlink, Follow);
  20151.     return hr;
  20152. }
  20153.  
  20154.  
  20155. VW_INLINE HRESULT CVisioHyperlink::Delete()
  20156. {
  20157.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20158.     CHECK_IP(GetIP(), CVisioHyperlink, Delete);
  20159.     if (NULL!=GetIP())
  20160.         hr= GetIP()->Delete();
  20161.     CHECK_HRESULT(hr, CVisioHyperlink, Delete);
  20162.     return hr;
  20163. }
  20164.  
  20165.  
  20166. VW_INLINE HRESULT CVisioHyperlink::Copy()
  20167. {
  20168.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20169.     CHECK_IP(GetIP(), CVisioHyperlink, Copy);
  20170.     if (NULL!=GetIP())
  20171.         hr= GetIP()->Copy();
  20172.     CHECK_HRESULT(hr, CVisioHyperlink, Copy);
  20173.     return hr;
  20174. }
  20175.  
  20176.  
  20177. VW_INLINE HRESULT CVisioHyperlink::CreateURL(short CanonicalForm, BSTR_HELPER_CLASS FAR &rWrap)
  20178. {
  20179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20180.     BSTR lpObj= NULL;
  20181.  
  20182.     CHECK_IP(GetIP(), CVisioHyperlink, CreateURL);
  20183.     if (NULL!=GetIP())
  20184.         hr= GetIP()->CreateURL(CanonicalForm, &lpObj);
  20185.     CHECK_HRESULT(hr, CVisioHyperlink, CreateURL);
  20186.  
  20187.     rWrap= lpObj;
  20188. #ifndef NO_BSTR_HELPER
  20189.     if (NULL!=lpObj)
  20190.         SysFreeString(lpObj);
  20191. #endif  //  NO_BSTR_HELPER
  20192.  
  20193.     return hr;
  20194. }
  20195.  
  20196.  
  20197.  
  20198. //  ***************************************************************************
  20199. //  Implementation of class CVisioOLEObjects
  20200.  
  20201. VW_INLINE HRESULT CVisioOLEObjects::Application(CVisioApplication FAR &rWrap)
  20202. {
  20203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20204.     IVApplication FAR *lpObj= NULL;
  20205.  
  20206.     CHECK_IP(GetIP(), CVisioOLEObjects, Application);
  20207.     if (NULL!=GetIP())
  20208.         hr= GetIP()->get_Application(&lpObj);
  20209.     CHECK_HRESULT(hr, CVisioOLEObjects, Application);
  20210.  
  20211.     rWrap= lpObj;
  20212.     if (NULL!=lpObj)
  20213.         lpObj->Release();
  20214.  
  20215.     return hr;
  20216. }
  20217.  
  20218.  
  20219. VW_INLINE HRESULT CVisioOLEObjects::ObjectType(short FAR *lpRet)
  20220. {
  20221.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20222.     CHECK_IP(GetIP(), CVisioOLEObjects, ObjectType);
  20223.     if (NULL!=GetIP())
  20224.         hr= GetIP()->get_ObjectType(lpRet);
  20225.     CHECK_HRESULT(hr, CVisioOLEObjects, ObjectType);
  20226.     return hr;
  20227. }
  20228.  
  20229.  
  20230. VW_INLINE HRESULT CVisioOLEObjects::Stat(short FAR *lpRet)
  20231. {
  20232.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20233.     CHECK_IP(GetIP(), CVisioOLEObjects, Stat);
  20234.     if (NULL!=GetIP())
  20235.         hr= GetIP()->get_Stat(lpRet);
  20236.     CHECK_HRESULT(hr, CVisioOLEObjects, Stat);
  20237.     return hr;
  20238. }
  20239.  
  20240.  
  20241. VW_INLINE HRESULT CVisioOLEObjects::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex, CVisioOLEObject FAR &rWrap)
  20242. {
  20243.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20244.     IVOLEObject FAR *lpObj= NULL;
  20245.  
  20246.     CHECK_IP(GetIP(), CVisioOLEObjects, Item);
  20247.     if (NULL!=GetIP())
  20248.         hr= GetIP()->get_Item(NameOrIndex, &lpObj);
  20249.     CHECK_HRESULT(hr, CVisioOLEObjects, Item);
  20250.  
  20251.     rWrap= lpObj;
  20252.     if (NULL!=lpObj)
  20253.         lpObj->Release();
  20254.  
  20255.     return hr;
  20256. }
  20257.  
  20258.  
  20259. VW_INLINE HRESULT CVisioOLEObjects::Count(short FAR *lpRet)
  20260. {
  20261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20262.     CHECK_IP(GetIP(), CVisioOLEObjects, Count);
  20263.     if (NULL!=GetIP())
  20264.         hr= GetIP()->get_Count(lpRet);
  20265.     CHECK_HRESULT(hr, CVisioOLEObjects, Count);
  20266.     return hr;
  20267. }
  20268.  
  20269.  
  20270.  
  20271. //  ***************************************************************************
  20272. //  Implementation of class CVisioOLEObject
  20273.  
  20274. VW_INLINE HRESULT CVisioOLEObject::Application(CVisioApplication FAR &rWrap)
  20275. {
  20276.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20277.     IVApplication FAR *lpObj= NULL;
  20278.  
  20279.     CHECK_IP(GetIP(), CVisioOLEObject, Application);
  20280.     if (NULL!=GetIP())
  20281.         hr= GetIP()->get_Application(&lpObj);
  20282.     CHECK_HRESULT(hr, CVisioOLEObject, Application);
  20283.  
  20284.     rWrap= lpObj;
  20285.     if (NULL!=lpObj)
  20286.         lpObj->Release();
  20287.  
  20288.     return hr;
  20289. }
  20290.  
  20291.  
  20292. VW_INLINE HRESULT CVisioOLEObject::Shape(CVisioShape FAR &rWrap)
  20293. {
  20294.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20295.     IVShape FAR *lpObj= NULL;
  20296.  
  20297.     CHECK_IP(GetIP(), CVisioOLEObject, Shape);
  20298.     if (NULL!=GetIP())
  20299.         hr= GetIP()->get_Shape(&lpObj);
  20300.     CHECK_HRESULT(hr, CVisioOLEObject, Shape);
  20301.  
  20302.     rWrap= lpObj;
  20303.     if (NULL!=lpObj)
  20304.         lpObj->Release();
  20305.  
  20306.     return hr;
  20307. }
  20308.  
  20309.  
  20310. VW_INLINE HRESULT CVisioOLEObject::ObjectType(short FAR *lpRet)
  20311. {
  20312.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20313.     CHECK_IP(GetIP(), CVisioOLEObject, ObjectType);
  20314.     if (NULL!=GetIP())
  20315.         hr= GetIP()->get_ObjectType(lpRet);
  20316.     CHECK_HRESULT(hr, CVisioOLEObject, ObjectType);
  20317.     return hr;
  20318. }
  20319.  
  20320.  
  20321. VW_INLINE HRESULT CVisioOLEObject::Stat(short FAR *lpRet)
  20322. {
  20323.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20324.     CHECK_IP(GetIP(), CVisioOLEObject, Stat);
  20325.     if (NULL!=GetIP())
  20326.         hr= GetIP()->get_Stat(lpRet);
  20327.     CHECK_HRESULT(hr, CVisioOLEObject, Stat);
  20328.     return hr;
  20329. }
  20330.  
  20331.  
  20332. VW_INLINE HRESULT CVisioOLEObject::ClassID(BSTR_HELPER_CLASS FAR &rWrap)
  20333. {
  20334.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20335.     BSTR lpObj= NULL;
  20336.  
  20337.     CHECK_IP(GetIP(), CVisioOLEObject, ClassID);
  20338.     if (NULL!=GetIP())
  20339.         hr= GetIP()->get_ClassID(&lpObj);
  20340.     CHECK_HRESULT(hr, CVisioOLEObject, ClassID);
  20341.  
  20342.     rWrap= lpObj;
  20343. #ifndef NO_BSTR_HELPER
  20344.     if (NULL!=lpObj)
  20345.         SysFreeString(lpObj);
  20346. #endif  //  NO_BSTR_HELPER
  20347.  
  20348.     return hr;
  20349. }
  20350.  
  20351.  
  20352. VW_INLINE HRESULT CVisioOLEObject::ProgID(BSTR_HELPER_CLASS FAR &rWrap)
  20353. {
  20354.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20355.     BSTR lpObj= NULL;
  20356.  
  20357.     CHECK_IP(GetIP(), CVisioOLEObject, ProgID);
  20358.     if (NULL!=GetIP())
  20359.         hr= GetIP()->get_ProgID(&lpObj);
  20360.     CHECK_HRESULT(hr, CVisioOLEObject, ProgID);
  20361.  
  20362.     rWrap= lpObj;
  20363. #ifndef NO_BSTR_HELPER
  20364.     if (NULL!=lpObj)
  20365.         SysFreeString(lpObj);
  20366. #endif  //  NO_BSTR_HELPER
  20367.  
  20368.     return hr;
  20369. }
  20370.  
  20371.  
  20372. VW_INLINE HRESULT CVisioOLEObject::ForeignType(short FAR *lpRet)
  20373. {
  20374.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20375.     CHECK_IP(GetIP(), CVisioOLEObject, ForeignType);
  20376.     if (NULL!=GetIP())
  20377.         hr= GetIP()->get_ForeignType(lpRet);
  20378.     CHECK_HRESULT(hr, CVisioOLEObject, ForeignType);
  20379.     return hr;
  20380. }
  20381.  
  20382.  
  20383. VW_INLINE HRESULT CVisioOLEObject::Object(IDispatch FAR *FAR *lpRet)
  20384. {
  20385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20386.     CHECK_IP(GetIP(), CVisioOLEObject, Object);
  20387.     if (NULL!=GetIP())
  20388.         hr= GetIP()->get_Object(lpRet);
  20389.     CHECK_HRESULT(hr, CVisioOLEObject, Object);
  20390.     return hr;
  20391. }
  20392.  
  20393.  
  20394.  
  20395. //  ***************************************************************************
  20396. //  Implementation of class CVisioPaths
  20397.  
  20398. VW_INLINE HRESULT CVisioPaths::Application(CVisioApplication FAR &rWrap)
  20399. {
  20400.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20401.     IVApplication FAR *lpObj= NULL;
  20402.  
  20403.     CHECK_IP(GetIP(), CVisioPaths, Application);
  20404.     if (NULL!=GetIP())
  20405.         hr= GetIP()->get_Application(&lpObj);
  20406.     CHECK_HRESULT(hr, CVisioPaths, Application);
  20407.  
  20408.     rWrap= lpObj;
  20409.     if (NULL!=lpObj)
  20410.         lpObj->Release();
  20411.  
  20412.     return hr;
  20413. }
  20414.  
  20415.  
  20416. VW_INLINE HRESULT CVisioPaths::ObjectType(short FAR *lpRet)
  20417. {
  20418.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20419.     CHECK_IP(GetIP(), CVisioPaths, ObjectType);
  20420.     if (NULL!=GetIP())
  20421.         hr= GetIP()->get_ObjectType(lpRet);
  20422.     CHECK_HRESULT(hr, CVisioPaths, ObjectType);
  20423.     return hr;
  20424. }
  20425.  
  20426.  
  20427. VW_INLINE HRESULT CVisioPaths::Item(short Index, CVisioPath FAR &rWrap)
  20428. {
  20429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20430.     IVPath FAR *lpObj= NULL;
  20431.  
  20432.     CHECK_IP(GetIP(), CVisioPaths, Item);
  20433.     if (NULL!=GetIP())
  20434.         hr= GetIP()->get_Item(Index, &lpObj);
  20435.     CHECK_HRESULT(hr, CVisioPaths, Item);
  20436.  
  20437.     rWrap= lpObj;
  20438.     if (NULL!=lpObj)
  20439.         lpObj->Release();
  20440.  
  20441.     return hr;
  20442. }
  20443.  
  20444.  
  20445. VW_INLINE HRESULT CVisioPaths::Count(short FAR *lpRet)
  20446. {
  20447.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20448.     CHECK_IP(GetIP(), CVisioPaths, Count);
  20449.     if (NULL!=GetIP())
  20450.         hr= GetIP()->get_Count(lpRet);
  20451.     CHECK_HRESULT(hr, CVisioPaths, Count);
  20452.     return hr;
  20453. }
  20454.  
  20455.  
  20456.  
  20457. //  ***************************************************************************
  20458. //  Implementation of class CVisioPath
  20459.  
  20460. VW_INLINE HRESULT CVisioPath::Application(CVisioApplication FAR &rWrap)
  20461. {
  20462.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20463.     IVApplication FAR *lpObj= NULL;
  20464.  
  20465.     CHECK_IP(GetIP(), CVisioPath, Application);
  20466.     if (NULL!=GetIP())
  20467.         hr= GetIP()->get_Application(&lpObj);
  20468.     CHECK_HRESULT(hr, CVisioPath, Application);
  20469.  
  20470.     rWrap= lpObj;
  20471.     if (NULL!=lpObj)
  20472.         lpObj->Release();
  20473.  
  20474.     return hr;
  20475. }
  20476.  
  20477.  
  20478. VW_INLINE HRESULT CVisioPath::ObjectType(short FAR *lpRet)
  20479. {
  20480.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20481.     CHECK_IP(GetIP(), CVisioPath, ObjectType);
  20482.     if (NULL!=GetIP())
  20483.         hr= GetIP()->get_ObjectType(lpRet);
  20484.     CHECK_HRESULT(hr, CVisioPath, ObjectType);
  20485.     return hr;
  20486. }
  20487.  
  20488.  
  20489. VW_INLINE HRESULT CVisioPath::Item(short Index, CVisioCurve FAR &rWrap)
  20490. {
  20491.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20492.     IVCurve FAR *lpObj= NULL;
  20493.  
  20494.     CHECK_IP(GetIP(), CVisioPath, Item);
  20495.     if (NULL!=GetIP())
  20496.         hr= GetIP()->get_Item(Index, &lpObj);
  20497.     CHECK_HRESULT(hr, CVisioPath, Item);
  20498.  
  20499.     rWrap= lpObj;
  20500.     if (NULL!=lpObj)
  20501.         lpObj->Release();
  20502.  
  20503.     return hr;
  20504. }
  20505.  
  20506.  
  20507. VW_INLINE HRESULT CVisioPath::Count(short FAR *lpRet)
  20508. {
  20509.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20510.     CHECK_IP(GetIP(), CVisioPath, Count);
  20511.     if (NULL!=GetIP())
  20512.         hr= GetIP()->get_Count(lpRet);
  20513.     CHECK_HRESULT(hr, CVisioPath, Count);
  20514.     return hr;
  20515. }
  20516.  
  20517.  
  20518. VW_INLINE HRESULT CVisioPath::Closed(short FAR *lpRet)
  20519. {
  20520.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20521.     CHECK_IP(GetIP(), CVisioPath, Closed);
  20522.     if (NULL!=GetIP())
  20523.         hr= GetIP()->get_Closed(lpRet);
  20524.     CHECK_HRESULT(hr, CVisioPath, Closed);
  20525.     return hr;
  20526. }
  20527.  
  20528.  
  20529. VW_INLINE HRESULT CVisioPath::Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray)
  20530. {
  20531.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20532.     CHECK_IP(GetIP(), CVisioPath, Points);
  20533.     if (NULL!=GetIP())
  20534.         hr= GetIP()->Points(Tolerance, xyArray);
  20535.     CHECK_HRESULT(hr, CVisioPath, Points);
  20536.     return hr;
  20537. }
  20538.  
  20539.  
  20540.  
  20541. //  ***************************************************************************
  20542. //  Implementation of class CVisioCurve
  20543.  
  20544. VW_INLINE HRESULT CVisioCurve::Application(CVisioApplication FAR &rWrap)
  20545. {
  20546.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20547.     IVApplication FAR *lpObj= NULL;
  20548.  
  20549.     CHECK_IP(GetIP(), CVisioCurve, Application);
  20550.     if (NULL!=GetIP())
  20551.         hr= GetIP()->get_Application(&lpObj);
  20552.     CHECK_HRESULT(hr, CVisioCurve, Application);
  20553.  
  20554.     rWrap= lpObj;
  20555.     if (NULL!=lpObj)
  20556.         lpObj->Release();
  20557.  
  20558.     return hr;
  20559. }
  20560.  
  20561.  
  20562. VW_INLINE HRESULT CVisioCurve::ObjectType(short FAR *lpRet)
  20563. {
  20564.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20565.     CHECK_IP(GetIP(), CVisioCurve, ObjectType);
  20566.     if (NULL!=GetIP())
  20567.         hr= GetIP()->get_ObjectType(lpRet);
  20568.     CHECK_HRESULT(hr, CVisioCurve, ObjectType);
  20569.     return hr;
  20570. }
  20571.  
  20572.  
  20573. VW_INLINE HRESULT CVisioCurve::Closed(short FAR *lpRet)
  20574. {
  20575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20576.     CHECK_IP(GetIP(), CVisioCurve, Closed);
  20577.     if (NULL!=GetIP())
  20578.         hr= GetIP()->get_Closed(lpRet);
  20579.     CHECK_HRESULT(hr, CVisioCurve, Closed);
  20580.     return hr;
  20581. }
  20582.  
  20583.  
  20584. VW_INLINE HRESULT CVisioCurve::Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray)
  20585. {
  20586.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20587.     CHECK_IP(GetIP(), CVisioCurve, Points);
  20588.     if (NULL!=GetIP())
  20589.         hr= GetIP()->Points(Tolerance, xyArray);
  20590.     CHECK_HRESULT(hr, CVisioCurve, Points);
  20591.     return hr;
  20592. }
  20593.  
  20594.  
  20595. VW_INLINE HRESULT CVisioCurve::Start(double FAR *lpRet)
  20596. {
  20597.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20598.     CHECK_IP(GetIP(), CVisioCurve, Start);
  20599.     if (NULL!=GetIP())
  20600.         hr= GetIP()->get_Start(lpRet);
  20601.     CHECK_HRESULT(hr, CVisioCurve, Start);
  20602.     return hr;
  20603. }
  20604.  
  20605.  
  20606. VW_INLINE HRESULT CVisioCurve::End(double FAR *lpRet)
  20607. {
  20608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20609.     CHECK_IP(GetIP(), CVisioCurve, End);
  20610.     if (NULL!=GetIP())
  20611.         hr= GetIP()->get_End(lpRet);
  20612.     CHECK_HRESULT(hr, CVisioCurve, End);
  20613.     return hr;
  20614. }
  20615.  
  20616.  
  20617. VW_INLINE HRESULT CVisioCurve::Point(double t, double FAR *x, double FAR *y)
  20618. {
  20619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20620.     CHECK_IP(GetIP(), CVisioCurve, Point);
  20621.     if (NULL!=GetIP())
  20622.         hr= GetIP()->Point(t, x, y);
  20623.     CHECK_HRESULT(hr, CVisioCurve, Point);
  20624.     return hr;
  20625. }
  20626.  
  20627.  
  20628. VW_INLINE HRESULT CVisioCurve::PointAndDerivatives(double t, short n, double FAR *x, double FAR *y, double FAR *dxdt, double FAR *dydt, double FAR *ddxdt, double FAR *ddydt)
  20629. {
  20630.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20631.     CHECK_IP(GetIP(), CVisioCurve, PointAndDerivatives);
  20632.     if (NULL!=GetIP())
  20633.         hr= GetIP()->PointAndDerivatives(t, n, x, y, dxdt, dydt, ddxdt, ddydt);
  20634.     CHECK_HRESULT(hr, CVisioCurve, PointAndDerivatives);
  20635.     return hr;
  20636. }
  20637.  
  20638.  
  20639.  
  20640. //  ***************************************************************************
  20641. //  Implementation of class CVisioExtender
  20642.  
  20643. VW_INLINE HRESULT CVisioExtender::getName(BSTR_HELPER_CLASS FAR &rWrap)
  20644. {
  20645.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20646.     BSTR lpObj= NULL;
  20647.  
  20648.     CHECK_IP(GetIP(), CVisioExtender, getName);
  20649.     if (NULL!=GetIP())
  20650.         hr= GetIP()->get_Name(&lpObj);
  20651.     CHECK_HRESULT(hr, CVisioExtender, getName);
  20652.  
  20653.     rWrap= lpObj;
  20654. #ifndef NO_BSTR_HELPER
  20655.     if (NULL!=lpObj)
  20656.         SysFreeString(lpObj);
  20657. #endif  //  NO_BSTR_HELPER
  20658.  
  20659.     return hr;
  20660. }
  20661.  
  20662.  
  20663. VW_INLINE HRESULT CVisioExtender::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20664. {
  20665.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20666.     CHECK_IP(GetIP(), CVisioExtender, putName);
  20667.     if (NULL!=GetIP())
  20668.         hr= GetIP()->put_Name(param01);
  20669.     CHECK_HRESULT(hr, CVisioExtender, putName);
  20670.     return hr;
  20671. }
  20672.  
  20673.  
  20674. VW_INLINE HRESULT CVisioExtender::Object(IUnknown FAR *FAR *lpRet)
  20675. {
  20676.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20677.     CHECK_IP(GetIP(), CVisioExtender, Object);
  20678.     if (NULL!=GetIP())
  20679.         hr= GetIP()->get_Object(lpRet);
  20680.     CHECK_HRESULT(hr, CVisioExtender, Object);
  20681.     return hr;
  20682. }
  20683.  
  20684.  
  20685. VW_INLINE HRESULT CVisioExtender::Parent(IUnknown FAR *FAR *lpRet)
  20686. {
  20687.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20688.     CHECK_IP(GetIP(), CVisioExtender, Parent);
  20689.     if (NULL!=GetIP())
  20690.         hr= GetIP()->get_Parent(lpRet);
  20691.     CHECK_HRESULT(hr, CVisioExtender, Parent);
  20692.     return hr;
  20693. }
  20694.  
  20695.  
  20696. VW_INLINE HRESULT CVisioExtender::Delete()
  20697. {
  20698.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20699.     CHECK_IP(GetIP(), CVisioExtender, Delete);
  20700.     if (NULL!=GetIP())
  20701.         hr= GetIP()->Delete();
  20702.     CHECK_HRESULT(hr, CVisioExtender, Delete);
  20703.     return hr;
  20704. }
  20705.  
  20706.  
  20707. VW_INLINE HRESULT CVisioExtender::Index()
  20708. {
  20709.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20710.     CHECK_IP(GetIP(), CVisioExtender, Index);
  20711.     if (NULL!=GetIP())
  20712.         hr= GetIP()->Index();
  20713.     CHECK_HRESULT(hr, CVisioExtender, Index);
  20714.     return hr;
  20715. }
  20716.  
  20717.  
  20718. VW_INLINE HRESULT CVisioExtender::Shape(CVisioShape FAR &rWrap)
  20719. {
  20720.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20721.     IVShape FAR *lpObj= NULL;
  20722.  
  20723.     CHECK_IP(GetIP(), CVisioExtender, Shape);
  20724.     if (NULL!=GetIP())
  20725.         hr= GetIP()->get_Shape(&lpObj);
  20726.     CHECK_HRESULT(hr, CVisioExtender, Shape);
  20727.  
  20728.     rWrap= lpObj;
  20729.     if (NULL!=lpObj)
  20730.         lpObj->Release();
  20731.  
  20732.     return hr;
  20733. }
  20734.  
  20735.  
  20736. VW_INLINE HRESULT CVisioExtender::Group()
  20737. {
  20738.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20739.     CHECK_IP(GetIP(), CVisioExtender, Group);
  20740.     if (NULL!=GetIP())
  20741.         hr= GetIP()->Group();
  20742.     CHECK_HRESULT(hr, CVisioExtender, Group);
  20743.     return hr;
  20744. }
  20745.  
  20746.  
  20747. VW_INLINE HRESULT CVisioExtender::BringForward()
  20748. {
  20749.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20750.     CHECK_IP(GetIP(), CVisioExtender, BringForward);
  20751.     if (NULL!=GetIP())
  20752.         hr= GetIP()->BringForward();
  20753.     CHECK_HRESULT(hr, CVisioExtender, BringForward);
  20754.     return hr;
  20755. }
  20756.  
  20757.  
  20758. VW_INLINE HRESULT CVisioExtender::BringToFront()
  20759. {
  20760.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20761.     CHECK_IP(GetIP(), CVisioExtender, BringToFront);
  20762.     if (NULL!=GetIP())
  20763.         hr= GetIP()->BringToFront();
  20764.     CHECK_HRESULT(hr, CVisioExtender, BringToFront);
  20765.     return hr;
  20766. }
  20767.  
  20768.  
  20769. VW_INLINE HRESULT CVisioExtender::ConvertToGroup()
  20770. {
  20771.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20772.     CHECK_IP(GetIP(), CVisioExtender, ConvertToGroup);
  20773.     if (NULL!=GetIP())
  20774.         hr= GetIP()->ConvertToGroup();
  20775.     CHECK_HRESULT(hr, CVisioExtender, ConvertToGroup);
  20776.     return hr;
  20777. }
  20778.  
  20779.  
  20780. VW_INLINE HRESULT CVisioExtender::SendBackward()
  20781. {
  20782.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20783.     CHECK_IP(GetIP(), CVisioExtender, SendBackward);
  20784.     if (NULL!=GetIP())
  20785.         hr= GetIP()->SendBackward();
  20786.     CHECK_HRESULT(hr, CVisioExtender, SendBackward);
  20787.     return hr;
  20788. }
  20789.  
  20790.  
  20791. VW_INLINE HRESULT CVisioExtender::SendToBack()
  20792. {
  20793.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20794.     CHECK_IP(GetIP(), CVisioExtender, SendToBack);
  20795.     if (NULL!=GetIP())
  20796.         hr= GetIP()->SendToBack();
  20797.     CHECK_HRESULT(hr, CVisioExtender, SendToBack);
  20798.     return hr;
  20799. }
  20800.  
  20801.  
  20802. VW_INLINE HRESULT CVisioExtender::Document(CVisioDocument FAR &rWrap)
  20803. {
  20804.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20805.     IVDocument FAR *lpObj= NULL;
  20806.  
  20807.     CHECK_IP(GetIP(), CVisioExtender, Document);
  20808.     if (NULL!=GetIP())
  20809.         hr= GetIP()->get_Document(&lpObj);
  20810.     CHECK_HRESULT(hr, CVisioExtender, Document);
  20811.  
  20812.     rWrap= lpObj;
  20813.     if (NULL!=lpObj)
  20814.         lpObj->Release();
  20815.  
  20816.     return hr;
  20817. }
  20818.  
  20819.  
  20820. VW_INLINE HRESULT CVisioExtender::ShapeParent(IDispatch FAR *FAR *lpRet)
  20821. {
  20822.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20823.     CHECK_IP(GetIP(), CVisioExtender, ShapeParent);
  20824.     if (NULL!=GetIP())
  20825.         hr= GetIP()->get_ShapeParent(lpRet);
  20826.     CHECK_HRESULT(hr, CVisioExtender, ShapeParent);
  20827.     return hr;
  20828. }
  20829.  
  20830.  
  20831. VW_INLINE HRESULT CVisioExtender::Application(CVisioApplication FAR &rWrap)
  20832. {
  20833.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20834.     IVApplication FAR *lpObj= NULL;
  20835.  
  20836.     CHECK_IP(GetIP(), CVisioExtender, Application);
  20837.     if (NULL!=GetIP())
  20838.         hr= GetIP()->get_Application(&lpObj);
  20839.     CHECK_HRESULT(hr, CVisioExtender, Application);
  20840.  
  20841.     rWrap= lpObj;
  20842.     if (NULL!=lpObj)
  20843.         lpObj->Release();
  20844.  
  20845.     return hr;
  20846. }
  20847.  
  20848.  
  20849. VW_INLINE HRESULT CVisioExtender::Master(CVisioMaster FAR &rWrap)
  20850. {
  20851.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20852.     IVMaster FAR *lpObj= NULL;
  20853.  
  20854.     CHECK_IP(GetIP(), CVisioExtender, Master);
  20855.     if (NULL!=GetIP())
  20856.         hr= GetIP()->get_Master(&lpObj);
  20857.     CHECK_HRESULT(hr, CVisioExtender, Master);
  20858.  
  20859.     rWrap= lpObj;
  20860.     if (NULL!=lpObj)
  20861.         lpObj->Release();
  20862.  
  20863.     return hr;
  20864. }
  20865.  
  20866.  
  20867. VW_INLINE HRESULT CVisioExtender::Cells(BSTR_HELPER_CLASS FAR &CellName, CVisioCell FAR &rWrap)
  20868. {
  20869.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20870.     IVCell FAR *lpObj= NULL;
  20871.  
  20872.     CHECK_IP(GetIP(), CVisioExtender, Cells);
  20873.     if (NULL!=GetIP())
  20874.         hr= GetIP()->get_Cells(CellName, &lpObj);
  20875.     CHECK_HRESULT(hr, CVisioExtender, Cells);
  20876.  
  20877.     rWrap= lpObj;
  20878.     if (NULL!=lpObj)
  20879.         lpObj->Release();
  20880.  
  20881.     return hr;
  20882. }
  20883.  
  20884.  
  20885. VW_INLINE HRESULT CVisioExtender::CellsSRC(short Section, short Row, short Column, CVisioCell FAR &rWrap)
  20886. {
  20887.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20888.     IVCell FAR *lpObj= NULL;
  20889.  
  20890.     CHECK_IP(GetIP(), CVisioExtender, CellsSRC);
  20891.     if (NULL!=GetIP())
  20892.         hr= GetIP()->get_CellsSRC(Section, Row, Column, &lpObj);
  20893.     CHECK_HRESULT(hr, CVisioExtender, CellsSRC);
  20894.  
  20895.     rWrap= lpObj;
  20896.     if (NULL!=lpObj)
  20897.         lpObj->Release();
  20898.  
  20899.     return hr;
  20900. }
  20901.  
  20902.  
  20903. VW_INLINE HRESULT CVisioExtender::getData1(BSTR_HELPER_CLASS FAR &rWrap)
  20904. {
  20905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20906.     BSTR lpObj= NULL;
  20907.  
  20908.     CHECK_IP(GetIP(), CVisioExtender, getData1);
  20909.     if (NULL!=GetIP())
  20910.         hr= GetIP()->get_Data1(&lpObj);
  20911.     CHECK_HRESULT(hr, CVisioExtender, getData1);
  20912.  
  20913.     rWrap= lpObj;
  20914. #ifndef NO_BSTR_HELPER
  20915.     if (NULL!=lpObj)
  20916.         SysFreeString(lpObj);
  20917. #endif  //  NO_BSTR_HELPER
  20918.  
  20919.     return hr;
  20920. }
  20921.  
  20922.  
  20923. VW_INLINE HRESULT CVisioExtender::putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20924. {
  20925.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20926.     CHECK_IP(GetIP(), CVisioExtender, putData1);
  20927.     if (NULL!=GetIP())
  20928.         hr= GetIP()->put_Data1(param01);
  20929.     CHECK_HRESULT(hr, CVisioExtender, putData1);
  20930.     return hr;
  20931. }
  20932.  
  20933.  
  20934. VW_INLINE HRESULT CVisioExtender::getData2(BSTR_HELPER_CLASS FAR &rWrap)
  20935. {
  20936.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20937.     BSTR lpObj= NULL;
  20938.  
  20939.     CHECK_IP(GetIP(), CVisioExtender, getData2);
  20940.     if (NULL!=GetIP())
  20941.         hr= GetIP()->get_Data2(&lpObj);
  20942.     CHECK_HRESULT(hr, CVisioExtender, getData2);
  20943.  
  20944.     rWrap= lpObj;
  20945. #ifndef NO_BSTR_HELPER
  20946.     if (NULL!=lpObj)
  20947.         SysFreeString(lpObj);
  20948. #endif  //  NO_BSTR_HELPER
  20949.  
  20950.     return hr;
  20951. }
  20952.  
  20953.  
  20954. VW_INLINE HRESULT CVisioExtender::putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20955. {
  20956.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20957.     CHECK_IP(GetIP(), CVisioExtender, putData2);
  20958.     if (NULL!=GetIP())
  20959.         hr= GetIP()->put_Data2(param01);
  20960.     CHECK_HRESULT(hr, CVisioExtender, putData2);
  20961.     return hr;
  20962. }
  20963.  
  20964.  
  20965. VW_INLINE HRESULT CVisioExtender::getData3(BSTR_HELPER_CLASS FAR &rWrap)
  20966. {
  20967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20968.     BSTR lpObj= NULL;
  20969.  
  20970.     CHECK_IP(GetIP(), CVisioExtender, getData3);
  20971.     if (NULL!=GetIP())
  20972.         hr= GetIP()->get_Data3(&lpObj);
  20973.     CHECK_HRESULT(hr, CVisioExtender, getData3);
  20974.  
  20975.     rWrap= lpObj;
  20976. #ifndef NO_BSTR_HELPER
  20977.     if (NULL!=lpObj)
  20978.         SysFreeString(lpObj);
  20979. #endif  //  NO_BSTR_HELPER
  20980.  
  20981.     return hr;
  20982. }
  20983.  
  20984.  
  20985. VW_INLINE HRESULT CVisioExtender::putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  20986. {
  20987.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20988.     CHECK_IP(GetIP(), CVisioExtender, putData3);
  20989.     if (NULL!=GetIP())
  20990.         hr= GetIP()->put_Data3(param01);
  20991.     CHECK_HRESULT(hr, CVisioExtender, putData3);
  20992.     return hr;
  20993. }
  20994.  
  20995.  
  20996. VW_INLINE HRESULT CVisioExtender::getHelp(BSTR_HELPER_CLASS FAR &rWrap)
  20997. {
  20998.     HRESULT hr= VW_INTERFACE_NOT_SET;
  20999.     BSTR lpObj= NULL;
  21000.  
  21001.     CHECK_IP(GetIP(), CVisioExtender, getHelp);
  21002.     if (NULL!=GetIP())
  21003.         hr= GetIP()->get_Help(&lpObj);
  21004.     CHECK_HRESULT(hr, CVisioExtender, getHelp);
  21005.  
  21006.     rWrap= lpObj;
  21007. #ifndef NO_BSTR_HELPER
  21008.     if (NULL!=lpObj)
  21009.         SysFreeString(lpObj);
  21010. #endif  //  NO_BSTR_HELPER
  21011.  
  21012.     return hr;
  21013. }
  21014.  
  21015.  
  21016. VW_INLINE HRESULT CVisioExtender::putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21017. {
  21018.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21019.     CHECK_IP(GetIP(), CVisioExtender, putHelp);
  21020.     if (NULL!=GetIP())
  21021.         hr= GetIP()->put_Help(param01);
  21022.     CHECK_HRESULT(hr, CVisioExtender, putHelp);
  21023.     return hr;
  21024. }
  21025.  
  21026.  
  21027. VW_INLINE HRESULT CVisioExtender::NameID(BSTR_HELPER_CLASS FAR &rWrap)
  21028. {
  21029.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21030.     BSTR lpObj= NULL;
  21031.  
  21032.     CHECK_IP(GetIP(), CVisioExtender, NameID);
  21033.     if (NULL!=GetIP())
  21034.         hr= GetIP()->get_NameID(&lpObj);
  21035.     CHECK_HRESULT(hr, CVisioExtender, NameID);
  21036.  
  21037.     rWrap= lpObj;
  21038. #ifndef NO_BSTR_HELPER
  21039.     if (NULL!=lpObj)
  21040.         SysFreeString(lpObj);
  21041. #endif  //  NO_BSTR_HELPER
  21042.  
  21043.     return hr;
  21044. }
  21045.  
  21046.  
  21047. VW_INLINE HRESULT CVisioExtender::ShapeCopy()
  21048. {
  21049.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21050.     CHECK_IP(GetIP(), CVisioExtender, ShapeCopy);
  21051.     if (NULL!=GetIP())
  21052.         hr= GetIP()->ShapeCopy();
  21053.     CHECK_HRESULT(hr, CVisioExtender, ShapeCopy);
  21054.     return hr;
  21055. }
  21056.  
  21057.  
  21058. VW_INLINE HRESULT CVisioExtender::ShapeCut()
  21059. {
  21060.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21061.     CHECK_IP(GetIP(), CVisioExtender, ShapeCut);
  21062.     if (NULL!=GetIP())
  21063.         hr= GetIP()->ShapeCut();
  21064.     CHECK_HRESULT(hr, CVisioExtender, ShapeCut);
  21065.     return hr;
  21066. }
  21067.  
  21068.  
  21069. VW_INLINE HRESULT CVisioExtender::ShapeDelete()
  21070. {
  21071.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21072.     CHECK_IP(GetIP(), CVisioExtender, ShapeDelete);
  21073.     if (NULL!=GetIP())
  21074.         hr= GetIP()->ShapeDelete();
  21075.     CHECK_HRESULT(hr, CVisioExtender, ShapeDelete);
  21076.     return hr;
  21077. }
  21078.  
  21079.  
  21080. VW_INLINE HRESULT CVisioExtender::ShapeDuplicate()
  21081. {
  21082.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21083.     CHECK_IP(GetIP(), CVisioExtender, ShapeDuplicate);
  21084.     if (NULL!=GetIP())
  21085.         hr= GetIP()->ShapeDuplicate();
  21086.     CHECK_HRESULT(hr, CVisioExtender, ShapeDuplicate);
  21087.     return hr;
  21088. }
  21089.  
  21090.  
  21091. VW_INLINE HRESULT CVisioExtender::RowCount(short Section, short FAR *lpRet)
  21092. {
  21093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21094.     CHECK_IP(GetIP(), CVisioExtender, RowCount);
  21095.     if (NULL!=GetIP())
  21096.         hr= GetIP()->get_RowCount(Section, lpRet);
  21097.     CHECK_HRESULT(hr, CVisioExtender, RowCount);
  21098.     return hr;
  21099. }
  21100.  
  21101.  
  21102. VW_INLINE HRESULT CVisioExtender::AddSection(short Section, short FAR *lpRet)
  21103. {
  21104.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21105.     CHECK_IP(GetIP(), CVisioExtender, AddSection);
  21106.     if (NULL!=GetIP())
  21107.         hr= GetIP()->AddSection(Section, lpRet);
  21108.     CHECK_HRESULT(hr, CVisioExtender, AddSection);
  21109.     return hr;
  21110. }
  21111.  
  21112.  
  21113. VW_INLINE HRESULT CVisioExtender::DeleteSection(short Section)
  21114. {
  21115.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21116.     CHECK_IP(GetIP(), CVisioExtender, DeleteSection);
  21117.     if (NULL!=GetIP())
  21118.         hr= GetIP()->DeleteSection(Section);
  21119.     CHECK_HRESULT(hr, CVisioExtender, DeleteSection);
  21120.     return hr;
  21121. }
  21122.  
  21123.  
  21124. VW_INLINE HRESULT CVisioExtender::AddRow(short Section, short Row, short RowTag, short FAR *lpRet)
  21125. {
  21126.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21127.     CHECK_IP(GetIP(), CVisioExtender, AddRow);
  21128.     if (NULL!=GetIP())
  21129.         hr= GetIP()->AddRow(Section, Row, RowTag, lpRet);
  21130.     CHECK_HRESULT(hr, CVisioExtender, AddRow);
  21131.     return hr;
  21132. }
  21133.  
  21134.  
  21135. VW_INLINE HRESULT CVisioExtender::DeleteRow(short Section, short Row)
  21136. {
  21137.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21138.     CHECK_IP(GetIP(), CVisioExtender, DeleteRow);
  21139.     if (NULL!=GetIP())
  21140.         hr= GetIP()->DeleteRow(Section, Row);
  21141.     CHECK_HRESULT(hr, CVisioExtender, DeleteRow);
  21142.     return hr;
  21143. }
  21144.  
  21145.  
  21146. VW_INLINE HRESULT CVisioExtender::RowsCellCount(short Section, short Row, short FAR *lpRet)
  21147. {
  21148.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21149.     CHECK_IP(GetIP(), CVisioExtender, RowsCellCount);
  21150.     if (NULL!=GetIP())
  21151.         hr= GetIP()->get_RowsCellCount(Section, Row, lpRet);
  21152.     CHECK_HRESULT(hr, CVisioExtender, RowsCellCount);
  21153.     return hr;
  21154. }
  21155.  
  21156.  
  21157. VW_INLINE HRESULT CVisioExtender::getRowType(short Section, short Row, short FAR *lpRet)
  21158. {
  21159.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21160.     CHECK_IP(GetIP(), CVisioExtender, getRowType);
  21161.     if (NULL!=GetIP())
  21162.         hr= GetIP()->get_RowType(Section, Row, lpRet);
  21163.     CHECK_HRESULT(hr, CVisioExtender, getRowType);
  21164.     return hr;
  21165. }
  21166.  
  21167.  
  21168. VW_INLINE HRESULT CVisioExtender::putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03)
  21169. {
  21170.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21171.     CHECK_IP(GetIP(), CVisioExtender, putRowType);
  21172.     if (NULL!=GetIP())
  21173.         hr= GetIP()->put_RowType(Section, Row, param03);
  21174.     CHECK_HRESULT(hr, CVisioExtender, putRowType);
  21175.     return hr;
  21176. }
  21177.  
  21178.  
  21179. VW_INLINE HRESULT CVisioExtender::SetCenter(double xPos, double yPos)
  21180. {
  21181.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21182.     CHECK_IP(GetIP(), CVisioExtender, SetCenter);
  21183.     if (NULL!=GetIP())
  21184.         hr= GetIP()->SetCenter(xPos, yPos);
  21185.     CHECK_HRESULT(hr, CVisioExtender, SetCenter);
  21186.     return hr;
  21187. }
  21188.  
  21189.  
  21190. VW_INLINE HRESULT CVisioExtender::Connects(CVisioConnects FAR &rWrap)
  21191. {
  21192.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21193.     IVConnects FAR *lpObj= NULL;
  21194.  
  21195.     CHECK_IP(GetIP(), CVisioExtender, Connects);
  21196.     if (NULL!=GetIP())
  21197.         hr= GetIP()->get_Connects(&lpObj);
  21198.     CHECK_HRESULT(hr, CVisioExtender, Connects);
  21199.  
  21200.     rWrap= lpObj;
  21201.     if (NULL!=lpObj)
  21202.         lpObj->Release();
  21203.  
  21204.     return hr;
  21205. }
  21206.  
  21207.  
  21208. VW_INLINE HRESULT CVisioExtender::ShapeIndex(short FAR *lpRet)
  21209. {
  21210.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21211.     CHECK_IP(GetIP(), CVisioExtender, ShapeIndex);
  21212.     if (NULL!=GetIP())
  21213.         hr= GetIP()->get_ShapeIndex(lpRet);
  21214.     CHECK_HRESULT(hr, CVisioExtender, ShapeIndex);
  21215.     return hr;
  21216. }
  21217.  
  21218.  
  21219. VW_INLINE HRESULT CVisioExtender::getStyle(BSTR_HELPER_CLASS FAR &rWrap)
  21220. {
  21221.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21222.     BSTR lpObj= NULL;
  21223.  
  21224.     CHECK_IP(GetIP(), CVisioExtender, getStyle);
  21225.     if (NULL!=GetIP())
  21226.         hr= GetIP()->get_Style(&lpObj);
  21227.     CHECK_HRESULT(hr, CVisioExtender, getStyle);
  21228.  
  21229.     rWrap= lpObj;
  21230. #ifndef NO_BSTR_HELPER
  21231.     if (NULL!=lpObj)
  21232.         SysFreeString(lpObj);
  21233. #endif  //  NO_BSTR_HELPER
  21234.  
  21235.     return hr;
  21236. }
  21237.  
  21238.  
  21239. VW_INLINE HRESULT CVisioExtender::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21240. {
  21241.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21242.     CHECK_IP(GetIP(), CVisioExtender, putStyle);
  21243.     if (NULL!=GetIP())
  21244.         hr= GetIP()->put_Style(param01);
  21245.     CHECK_HRESULT(hr, CVisioExtender, putStyle);
  21246.     return hr;
  21247. }
  21248.  
  21249.  
  21250. VW_INLINE HRESULT CVisioExtender::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21251. {
  21252.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21253.     CHECK_IP(GetIP(), CVisioExtender, StyleKeepFmt);
  21254.     if (NULL!=GetIP())
  21255.         hr= GetIP()->put_StyleKeepFmt(param01);
  21256.     CHECK_HRESULT(hr, CVisioExtender, StyleKeepFmt);
  21257.     return hr;
  21258. }
  21259.  
  21260.  
  21261. VW_INLINE HRESULT CVisioExtender::getLineStyle(BSTR_HELPER_CLASS FAR &rWrap)
  21262. {
  21263.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21264.     BSTR lpObj= NULL;
  21265.  
  21266.     CHECK_IP(GetIP(), CVisioExtender, getLineStyle);
  21267.     if (NULL!=GetIP())
  21268.         hr= GetIP()->get_LineStyle(&lpObj);
  21269.     CHECK_HRESULT(hr, CVisioExtender, getLineStyle);
  21270.  
  21271.     rWrap= lpObj;
  21272. #ifndef NO_BSTR_HELPER
  21273.     if (NULL!=lpObj)
  21274.         SysFreeString(lpObj);
  21275. #endif  //  NO_BSTR_HELPER
  21276.  
  21277.     return hr;
  21278. }
  21279.  
  21280.  
  21281. VW_INLINE HRESULT CVisioExtender::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21282. {
  21283.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21284.     CHECK_IP(GetIP(), CVisioExtender, putLineStyle);
  21285.     if (NULL!=GetIP())
  21286.         hr= GetIP()->put_LineStyle(param01);
  21287.     CHECK_HRESULT(hr, CVisioExtender, putLineStyle);
  21288.     return hr;
  21289. }
  21290.  
  21291.  
  21292. VW_INLINE HRESULT CVisioExtender::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21293. {
  21294.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21295.     CHECK_IP(GetIP(), CVisioExtender, LineStyleKeepFmt);
  21296.     if (NULL!=GetIP())
  21297.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  21298.     CHECK_HRESULT(hr, CVisioExtender, LineStyleKeepFmt);
  21299.     return hr;
  21300. }
  21301.  
  21302.  
  21303. VW_INLINE HRESULT CVisioExtender::getFillStyle(BSTR_HELPER_CLASS FAR &rWrap)
  21304. {
  21305.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21306.     BSTR lpObj= NULL;
  21307.  
  21308.     CHECK_IP(GetIP(), CVisioExtender, getFillStyle);
  21309.     if (NULL!=GetIP())
  21310.         hr= GetIP()->get_FillStyle(&lpObj);
  21311.     CHECK_HRESULT(hr, CVisioExtender, getFillStyle);
  21312.  
  21313.     rWrap= lpObj;
  21314. #ifndef NO_BSTR_HELPER
  21315.     if (NULL!=lpObj)
  21316.         SysFreeString(lpObj);
  21317. #endif  //  NO_BSTR_HELPER
  21318.  
  21319.     return hr;
  21320. }
  21321.  
  21322.  
  21323. VW_INLINE HRESULT CVisioExtender::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21324. {
  21325.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21326.     CHECK_IP(GetIP(), CVisioExtender, putFillStyle);
  21327.     if (NULL!=GetIP())
  21328.         hr= GetIP()->put_FillStyle(param01);
  21329.     CHECK_HRESULT(hr, CVisioExtender, putFillStyle);
  21330.     return hr;
  21331. }
  21332.  
  21333.  
  21334. VW_INLINE HRESULT CVisioExtender::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  21335. {
  21336.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21337.     CHECK_IP(GetIP(), CVisioExtender, FillStyleKeepFmt);
  21338.     if (NULL!=GetIP())
  21339.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  21340.     CHECK_HRESULT(hr, CVisioExtender, FillStyleKeepFmt);
  21341.     return hr;
  21342. }
  21343.  
  21344.  
  21345. VW_INLINE HRESULT CVisioExtender::Export(BSTR_HELPER_CLASS FAR &FileName)
  21346. {
  21347.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21348.     CHECK_IP(GetIP(), CVisioExtender, Export);
  21349.     if (NULL!=GetIP())
  21350.         hr= GetIP()->Export(FileName);
  21351.     CHECK_HRESULT(hr, CVisioExtender, Export);
  21352.     return hr;
  21353. }
  21354.  
  21355.  
  21356. VW_INLINE HRESULT CVisioExtender::UniqueID(short fUniqueID, BSTR_HELPER_CLASS FAR &rWrap)
  21357. {
  21358.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21359.     BSTR lpObj= NULL;
  21360.  
  21361.     CHECK_IP(GetIP(), CVisioExtender, UniqueID);
  21362.     if (NULL!=GetIP())
  21363.         hr= GetIP()->get_UniqueID(fUniqueID, &lpObj);
  21364.     CHECK_HRESULT(hr, CVisioExtender, UniqueID);
  21365.  
  21366.     rWrap= lpObj;
  21367. #ifndef NO_BSTR_HELPER
  21368.     if (NULL!=lpObj)
  21369.         SysFreeString(lpObj);
  21370. #endif  //  NO_BSTR_HELPER
  21371.  
  21372.     return hr;
  21373. }
  21374.  
  21375.  
  21376. VW_INLINE HRESULT CVisioExtender::ContainingPage(CVisioPage FAR &rWrap)
  21377. {
  21378.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21379.     IVPage FAR *lpObj= NULL;
  21380.  
  21381.     CHECK_IP(GetIP(), CVisioExtender, ContainingPage);
  21382.     if (NULL!=GetIP())
  21383.         hr= GetIP()->get_ContainingPage(&lpObj);
  21384.     CHECK_HRESULT(hr, CVisioExtender, ContainingPage);
  21385.  
  21386.     rWrap= lpObj;
  21387.     if (NULL!=lpObj)
  21388.         lpObj->Release();
  21389.  
  21390.     return hr;
  21391. }
  21392.  
  21393.  
  21394. VW_INLINE HRESULT CVisioExtender::ContainingMaster(CVisioMaster FAR &rWrap)
  21395. {
  21396.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21397.     IVMaster FAR *lpObj= NULL;
  21398.  
  21399.     CHECK_IP(GetIP(), CVisioExtender, ContainingMaster);
  21400.     if (NULL!=GetIP())
  21401.         hr= GetIP()->get_ContainingMaster(&lpObj);
  21402.     CHECK_HRESULT(hr, CVisioExtender, ContainingMaster);
  21403.  
  21404.     rWrap= lpObj;
  21405.     if (NULL!=lpObj)
  21406.         lpObj->Release();
  21407.  
  21408.     return hr;
  21409. }
  21410.  
  21411.  
  21412. VW_INLINE HRESULT CVisioExtender::ContainingShape(CVisioShape FAR &rWrap)
  21413. {
  21414.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21415.     IVShape FAR *lpObj= NULL;
  21416.  
  21417.     CHECK_IP(GetIP(), CVisioExtender, ContainingShape);
  21418.     if (NULL!=GetIP())
  21419.         hr= GetIP()->get_ContainingShape(&lpObj);
  21420.     CHECK_HRESULT(hr, CVisioExtender, ContainingShape);
  21421.  
  21422.     rWrap= lpObj;
  21423.     if (NULL!=lpObj)
  21424.         lpObj->Release();
  21425.  
  21426.     return hr;
  21427. }
  21428.  
  21429.  
  21430. VW_INLINE HRESULT CVisioExtender::SectionExists(short Section, short fLocalExists, short FAR *lpRet)
  21431. {
  21432.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21433.     CHECK_IP(GetIP(), CVisioExtender, SectionExists);
  21434.     if (NULL!=GetIP())
  21435.         hr= GetIP()->get_SectionExists(Section, fLocalExists, lpRet);
  21436.     CHECK_HRESULT(hr, CVisioExtender, SectionExists);
  21437.     return hr;
  21438. }
  21439.  
  21440.  
  21441. VW_INLINE HRESULT CVisioExtender::RowExists(short Section, short Row, short fLocalExists, short FAR *lpRet)
  21442. {
  21443.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21444.     CHECK_IP(GetIP(), CVisioExtender, RowExists);
  21445.     if (NULL!=GetIP())
  21446.         hr= GetIP()->get_RowExists(Section, Row, fLocalExists, lpRet);
  21447.     CHECK_HRESULT(hr, CVisioExtender, RowExists);
  21448.     return hr;
  21449. }
  21450.  
  21451.  
  21452. VW_INLINE HRESULT CVisioExtender::CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists, short FAR *lpRet)
  21453. {
  21454.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21455.     CHECK_IP(GetIP(), CVisioExtender, CellExists);
  21456.     if (NULL!=GetIP())
  21457.         hr= GetIP()->get_CellExists(CellName, fLocalExists, lpRet);
  21458.     CHECK_HRESULT(hr, CVisioExtender, CellExists);
  21459.     return hr;
  21460. }
  21461.  
  21462.  
  21463. VW_INLINE HRESULT CVisioExtender::CellsSRCExists(short Section, short Row, short Column, short fLocalExists, short FAR *lpRet)
  21464. {
  21465.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21466.     CHECK_IP(GetIP(), CVisioExtender, CellsSRCExists);
  21467.     if (NULL!=GetIP())
  21468.         hr= GetIP()->get_CellsSRCExists(Section, Row, Column, fLocalExists, lpRet);
  21469.     CHECK_HRESULT(hr, CVisioExtender, CellsSRCExists);
  21470.     return hr;
  21471. }
  21472.  
  21473.  
  21474. VW_INLINE HRESULT CVisioExtender::LayerCount(short FAR *lpRet)
  21475. {
  21476.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21477.     CHECK_IP(GetIP(), CVisioExtender, LayerCount);
  21478.     if (NULL!=GetIP())
  21479.         hr= GetIP()->get_LayerCount(lpRet);
  21480.     CHECK_HRESULT(hr, CVisioExtender, LayerCount);
  21481.     return hr;
  21482. }
  21483.  
  21484.  
  21485. VW_INLINE HRESULT CVisioExtender::Layer(short Index, CVisioLayer FAR &rWrap)
  21486. {
  21487.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21488.     IVLayer FAR *lpObj= NULL;
  21489.  
  21490.     CHECK_IP(GetIP(), CVisioExtender, Layer);
  21491.     if (NULL!=GetIP())
  21492.         hr= GetIP()->get_Layer(Index, &lpObj);
  21493.     CHECK_HRESULT(hr, CVisioExtender, Layer);
  21494.  
  21495.     rWrap= lpObj;
  21496.     if (NULL!=lpObj)
  21497.         lpObj->Release();
  21498.  
  21499.     return hr;
  21500. }
  21501.  
  21502.  
  21503. VW_INLINE HRESULT CVisioExtender::AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag, short FAR *lpRet)
  21504. {
  21505.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21506.     CHECK_IP(GetIP(), CVisioExtender, AddNamedRow);
  21507.     if (NULL!=GetIP())
  21508.         hr= GetIP()->AddNamedRow(Section, RowName, RowTag, lpRet);
  21509.     CHECK_HRESULT(hr, CVisioExtender, AddNamedRow);
  21510.     return hr;
  21511. }
  21512.  
  21513.  
  21514. VW_INLINE HRESULT CVisioExtender::AddRows(short Section, short Row, short RowTag, short RowCount, short FAR *lpRet)
  21515. {
  21516.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21517.     CHECK_IP(GetIP(), CVisioExtender, AddRows);
  21518.     if (NULL!=GetIP())
  21519.         hr= GetIP()->AddRows(Section, Row, RowTag, RowCount, lpRet);
  21520.     CHECK_HRESULT(hr, CVisioExtender, AddRows);
  21521.     return hr;
  21522. }
  21523.  
  21524.  
  21525. VW_INLINE HRESULT CVisioExtender::EventList(CVisioEventList FAR &rWrap)
  21526. {
  21527.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21528.     IVEventList FAR *lpObj= NULL;
  21529.  
  21530.     CHECK_IP(GetIP(), CVisioExtender, EventList);
  21531.     if (NULL!=GetIP())
  21532.         hr= GetIP()->get_EventList(&lpObj);
  21533.     CHECK_HRESULT(hr, CVisioExtender, EventList);
  21534.  
  21535.     rWrap= lpObj;
  21536.     if (NULL!=lpObj)
  21537.         lpObj->Release();
  21538.  
  21539.     return hr;
  21540. }
  21541.  
  21542.  
  21543. VW_INLINE HRESULT CVisioExtender::PersistsEvents(short FAR *lpRet)
  21544. {
  21545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21546.     CHECK_IP(GetIP(), CVisioExtender, PersistsEvents);
  21547.     if (NULL!=GetIP())
  21548.         hr= GetIP()->get_PersistsEvents(lpRet);
  21549.     CHECK_HRESULT(hr, CVisioExtender, PersistsEvents);
  21550.     return hr;
  21551. }
  21552.  
  21553.  
  21554. VW_INLINE HRESULT CVisioExtender::ClassID(BSTR_HELPER_CLASS FAR &rWrap)
  21555. {
  21556.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21557.     BSTR lpObj= NULL;
  21558.  
  21559.     CHECK_IP(GetIP(), CVisioExtender, ClassID);
  21560.     if (NULL!=GetIP())
  21561.         hr= GetIP()->get_ClassID(&lpObj);
  21562.     CHECK_HRESULT(hr, CVisioExtender, ClassID);
  21563.  
  21564.     rWrap= lpObj;
  21565. #ifndef NO_BSTR_HELPER
  21566.     if (NULL!=lpObj)
  21567.         SysFreeString(lpObj);
  21568. #endif  //  NO_BSTR_HELPER
  21569.  
  21570.     return hr;
  21571. }
  21572.  
  21573.  
  21574. VW_INLINE HRESULT CVisioExtender::ShapeObject(IDispatch FAR *FAR *lpRet)
  21575. {
  21576.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21577.     CHECK_IP(GetIP(), CVisioExtender, ShapeObject);
  21578.     if (NULL!=GetIP())
  21579.         hr= GetIP()->get_ShapeObject(lpRet);
  21580.     CHECK_HRESULT(hr, CVisioExtender, ShapeObject);
  21581.     return hr;
  21582. }
  21583.  
  21584.  
  21585. VW_INLINE HRESULT CVisioExtender::OpenSheetWindow(CVisioWindow FAR &rWrap)
  21586. {
  21587.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21588.     IVWindow FAR *lpObj= NULL;
  21589.  
  21590.     CHECK_IP(GetIP(), CVisioExtender, OpenSheetWindow);
  21591.     if (NULL!=GetIP())
  21592.         hr= GetIP()->OpenSheetWindow(&lpObj);
  21593.     CHECK_HRESULT(hr, CVisioExtender, OpenSheetWindow);
  21594.  
  21595.     rWrap= lpObj;
  21596.     if (NULL!=lpObj)
  21597.         lpObj->Release();
  21598.  
  21599.     return hr;
  21600. }
  21601.  
  21602.  
  21603. VW_INLINE HRESULT CVisioExtender::ShapeID(short FAR *lpRet)
  21604. {
  21605.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21606.     CHECK_IP(GetIP(), CVisioExtender, ShapeID);
  21607.     if (NULL!=GetIP())
  21608.         hr= GetIP()->get_ShapeID(lpRet);
  21609.     CHECK_HRESULT(hr, CVisioExtender, ShapeID);
  21610.     return hr;
  21611. }
  21612.  
  21613.  
  21614. VW_INLINE HRESULT CVisioExtender::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  21615. {
  21616.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21617.     CHECK_IP(GetIP(), CVisioExtender, GetFormulas);
  21618.     if (NULL!=GetIP())
  21619.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  21620.     CHECK_HRESULT(hr, CVisioExtender, GetFormulas);
  21621.     return hr;
  21622. }
  21623.  
  21624.  
  21625. VW_INLINE HRESULT CVisioExtender::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  21626. {
  21627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21628.     CHECK_IP(GetIP(), CVisioExtender, GetResults);
  21629.     if (NULL!=GetIP())
  21630.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  21631.     CHECK_HRESULT(hr, CVisioExtender, GetResults);
  21632.     return hr;
  21633. }
  21634.  
  21635.  
  21636. VW_INLINE HRESULT CVisioExtender::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
  21637. {
  21638.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21639.     CHECK_IP(GetIP(), CVisioExtender, SetFormulas);
  21640.     if (NULL!=GetIP())
  21641.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, lpRet);
  21642.     CHECK_HRESULT(hr, CVisioExtender, SetFormulas);
  21643.     return hr;
  21644. }
  21645.  
  21646.  
  21647. VW_INLINE HRESULT CVisioExtender::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
  21648. {
  21649.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21650.     CHECK_IP(GetIP(), CVisioExtender, SetResults);
  21651.     if (NULL!=GetIP())
  21652.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, lpRet);
  21653.     CHECK_HRESULT(hr, CVisioExtender, SetResults);
  21654.     return hr;
  21655. }
  21656.  
  21657.  
  21658. VW_INLINE HRESULT CVisioExtender::FromConnects(CVisioConnects FAR &rWrap)
  21659. {
  21660.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21661.     IVConnects FAR *lpObj= NULL;
  21662.  
  21663.     CHECK_IP(GetIP(), CVisioExtender, FromConnects);
  21664.     if (NULL!=GetIP())
  21665.         hr= GetIP()->get_FromConnects(&lpObj);
  21666.     CHECK_HRESULT(hr, CVisioExtender, FromConnects);
  21667.  
  21668.     rWrap= lpObj;
  21669.     if (NULL!=lpObj)
  21670.         lpObj->Release();
  21671.  
  21672.     return hr;
  21673. }
  21674.  
  21675.  
  21676. VW_INLINE HRESULT CVisioExtender::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  21677. {
  21678.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21679.     CHECK_IP(GetIP(), CVisioExtender, BoundingBox);
  21680.     if (NULL!=GetIP())
  21681.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  21682.     CHECK_HRESULT(hr, CVisioExtender, BoundingBox);
  21683.     return hr;
  21684. }
  21685.  
  21686.  
  21687. VW_INLINE HRESULT CVisioExtender::HitTest(double xPos, double yPos, double Tolerance, short FAR *lpRet)
  21688. {
  21689.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21690.     CHECK_IP(GetIP(), CVisioExtender, HitTest);
  21691.     if (NULL!=GetIP())
  21692.         hr= GetIP()->HitTest(xPos, yPos, Tolerance, lpRet);
  21693.     CHECK_HRESULT(hr, CVisioExtender, HitTest);
  21694.     return hr;
  21695. }
  21696.  
  21697.  
  21698. VW_INLINE HRESULT CVisioExtender::Hyperlink(CVisioHyperlink FAR &rWrap)
  21699. {
  21700.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21701.     IVHyperlink FAR *lpObj= NULL;
  21702.  
  21703.     CHECK_IP(GetIP(), CVisioExtender, Hyperlink);
  21704.     if (NULL!=GetIP())
  21705.         hr= GetIP()->get_Hyperlink(&lpObj);
  21706.     CHECK_HRESULT(hr, CVisioExtender, Hyperlink);
  21707.  
  21708.     rWrap= lpObj;
  21709.     if (NULL!=lpObj)
  21710.         lpObj->Release();
  21711.  
  21712.     return hr;
  21713. }
  21714.  
  21715.  
  21716. VW_INLINE HRESULT CVisioExtender::ProgID(BSTR_HELPER_CLASS FAR &rWrap)
  21717. {
  21718.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21719.     BSTR lpObj= NULL;
  21720.  
  21721.     CHECK_IP(GetIP(), CVisioExtender, ProgID);
  21722.     if (NULL!=GetIP())
  21723.         hr= GetIP()->get_ProgID(&lpObj);
  21724.     CHECK_HRESULT(hr, CVisioExtender, ProgID);
  21725.  
  21726.     rWrap= lpObj;
  21727. #ifndef NO_BSTR_HELPER
  21728.     if (NULL!=lpObj)
  21729.         SysFreeString(lpObj);
  21730. #endif  //  NO_BSTR_HELPER
  21731.  
  21732.     return hr;
  21733. }
  21734.  
  21735.  
  21736. VW_INLINE HRESULT CVisioExtender::ObjectIsInherited(short FAR *lpRet)
  21737. {
  21738.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21739.     CHECK_IP(GetIP(), CVisioExtender, ObjectIsInherited);
  21740.     if (NULL!=GetIP())
  21741.         hr= GetIP()->get_ObjectIsInherited(lpRet);
  21742.     CHECK_HRESULT(hr, CVisioExtender, ObjectIsInherited);
  21743.     return hr;
  21744. }
  21745.  
  21746.  
  21747.  
  21748. //  ***************************************************************************
  21749. //  Implementation of class CVisioDispExtender
  21750.  
  21751.  
  21752. //  ***************************************************************************
  21753. //  Implementation of class CVisioAmbients
  21754.  
  21755. VW_INLINE HRESULT CVisioAmbients::BackColor(long FAR *lpRet)
  21756. {
  21757.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21758.     CHECK_IP(GetIP(), CVisioAmbients, BackColor);
  21759.     if (NULL!=GetIP())
  21760.         hr= GetIP()->get_BackColor(lpRet);
  21761.     CHECK_HRESULT(hr, CVisioAmbients, BackColor);
  21762.     return hr;
  21763. }
  21764.  
  21765.  
  21766. VW_INLINE HRESULT CVisioAmbients::DisplayName(BSTR_HELPER_CLASS FAR &rWrap)
  21767. {
  21768.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21769.     BSTR lpObj= NULL;
  21770.  
  21771.     CHECK_IP(GetIP(), CVisioAmbients, DisplayName);
  21772.     if (NULL!=GetIP())
  21773.         hr= GetIP()->get_DisplayName(&lpObj);
  21774.     CHECK_HRESULT(hr, CVisioAmbients, DisplayName);
  21775.  
  21776.     rWrap= lpObj;
  21777. #ifndef NO_BSTR_HELPER
  21778.     if (NULL!=lpObj)
  21779.         SysFreeString(lpObj);
  21780. #endif  //  NO_BSTR_HELPER
  21781.  
  21782.     return hr;
  21783. }
  21784.  
  21785.  
  21786. VW_INLINE HRESULT CVisioAmbients::Font(IDispatch FAR *FAR *lpRet)
  21787. {
  21788.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21789.     CHECK_IP(GetIP(), CVisioAmbients, Font);
  21790.     if (NULL!=GetIP())
  21791.         hr= GetIP()->get_Font(lpRet);
  21792.     CHECK_HRESULT(hr, CVisioAmbients, Font);
  21793.     return hr;
  21794. }
  21795.  
  21796.  
  21797. VW_INLINE HRESULT CVisioAmbients::ForeColor(long FAR *lpRet)
  21798. {
  21799.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21800.     CHECK_IP(GetIP(), CVisioAmbients, ForeColor);
  21801.     if (NULL!=GetIP())
  21802.         hr= GetIP()->get_ForeColor(lpRet);
  21803.     CHECK_HRESULT(hr, CVisioAmbients, ForeColor);
  21804.     return hr;
  21805. }
  21806.  
  21807.  
  21808. VW_INLINE HRESULT CVisioAmbients::LocaleID(long FAR *lpRet)
  21809. {
  21810.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21811.     CHECK_IP(GetIP(), CVisioAmbients, LocaleID);
  21812.     if (NULL!=GetIP())
  21813.         hr= GetIP()->get_LocaleID(lpRet);
  21814.     CHECK_HRESULT(hr, CVisioAmbients, LocaleID);
  21815.     return hr;
  21816. }
  21817.  
  21818.  
  21819. VW_INLINE HRESULT CVisioAmbients::MessageReflect(VARIANT_BOOL FAR *lpRet)
  21820. {
  21821.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21822.     CHECK_IP(GetIP(), CVisioAmbients, MessageReflect);
  21823.     if (NULL!=GetIP())
  21824.         hr= GetIP()->get_MessageReflect(lpRet);
  21825.     CHECK_HRESULT(hr, CVisioAmbients, MessageReflect);
  21826.     return hr;
  21827. }
  21828.  
  21829.  
  21830. VW_INLINE HRESULT CVisioAmbients::ScaleUnits(BSTR_HELPER_CLASS FAR &rWrap)
  21831. {
  21832.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21833.     BSTR lpObj= NULL;
  21834.  
  21835.     CHECK_IP(GetIP(), CVisioAmbients, ScaleUnits);
  21836.     if (NULL!=GetIP())
  21837.         hr= GetIP()->get_ScaleUnits(&lpObj);
  21838.     CHECK_HRESULT(hr, CVisioAmbients, ScaleUnits);
  21839.  
  21840.     rWrap= lpObj;
  21841. #ifndef NO_BSTR_HELPER
  21842.     if (NULL!=lpObj)
  21843.         SysFreeString(lpObj);
  21844. #endif  //  NO_BSTR_HELPER
  21845.  
  21846.     return hr;
  21847. }
  21848.  
  21849.  
  21850. VW_INLINE HRESULT CVisioAmbients::TextAlign(short FAR *lpRet)
  21851. {
  21852.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21853.     CHECK_IP(GetIP(), CVisioAmbients, TextAlign);
  21854.     if (NULL!=GetIP())
  21855.         hr= GetIP()->get_TextAlign(lpRet);
  21856.     CHECK_HRESULT(hr, CVisioAmbients, TextAlign);
  21857.     return hr;
  21858. }
  21859.  
  21860.  
  21861. VW_INLINE HRESULT CVisioAmbients::UserMode(VARIANT_BOOL FAR *lpRet)
  21862. {
  21863.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21864.     CHECK_IP(GetIP(), CVisioAmbients, UserMode);
  21865.     if (NULL!=GetIP())
  21866.         hr= GetIP()->get_UserMode(lpRet);
  21867.     CHECK_HRESULT(hr, CVisioAmbients, UserMode);
  21868.     return hr;
  21869. }
  21870.  
  21871.  
  21872. VW_INLINE HRESULT CVisioAmbients::UIDead(VARIANT_BOOL FAR *lpRet)
  21873. {
  21874.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21875.     CHECK_IP(GetIP(), CVisioAmbients, UIDead);
  21876.     if (NULL!=GetIP())
  21877.         hr= GetIP()->get_UIDead(lpRet);
  21878.     CHECK_HRESULT(hr, CVisioAmbients, UIDead);
  21879.     return hr;
  21880. }
  21881.  
  21882.  
  21883. VW_INLINE HRESULT CVisioAmbients::ShowGrabHandles(VARIANT_BOOL FAR *lpRet)
  21884. {
  21885.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21886.     CHECK_IP(GetIP(), CVisioAmbients, ShowGrabHandles);
  21887.     if (NULL!=GetIP())
  21888.         hr= GetIP()->get_ShowGrabHandles(lpRet);
  21889.     CHECK_HRESULT(hr, CVisioAmbients, ShowGrabHandles);
  21890.     return hr;
  21891. }
  21892.  
  21893.  
  21894. VW_INLINE HRESULT CVisioAmbients::ShowHatching(VARIANT_BOOL FAR *lpRet)
  21895. {
  21896.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21897.     CHECK_IP(GetIP(), CVisioAmbients, ShowHatching);
  21898.     if (NULL!=GetIP())
  21899.         hr= GetIP()->get_ShowHatching(lpRet);
  21900.     CHECK_HRESULT(hr, CVisioAmbients, ShowHatching);
  21901.     return hr;
  21902. }
  21903.  
  21904.  
  21905. VW_INLINE HRESULT CVisioAmbients::DisplayAsDefault(VARIANT_BOOL FAR *lpRet)
  21906. {
  21907.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21908.     CHECK_IP(GetIP(), CVisioAmbients, DisplayAsDefault);
  21909.     if (NULL!=GetIP())
  21910.         hr= GetIP()->get_DisplayAsDefault(lpRet);
  21911.     CHECK_HRESULT(hr, CVisioAmbients, DisplayAsDefault);
  21912.     return hr;
  21913. }
  21914.  
  21915.  
  21916. VW_INLINE HRESULT CVisioAmbients::SupportsMnemonics(VARIANT_BOOL FAR *lpRet)
  21917. {
  21918.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21919.     CHECK_IP(GetIP(), CVisioAmbients, SupportsMnemonics);
  21920.     if (NULL!=GetIP())
  21921.         hr= GetIP()->get_SupportsMnemonics(lpRet);
  21922.     CHECK_HRESULT(hr, CVisioAmbients, SupportsMnemonics);
  21923.     return hr;
  21924. }
  21925.  
  21926.  
  21927. VW_INLINE HRESULT CVisioAmbients::AutoClip(VARIANT_BOOL FAR *lpRet)
  21928. {
  21929.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21930.     CHECK_IP(GetIP(), CVisioAmbients, AutoClip);
  21931.     if (NULL!=GetIP())
  21932.         hr= GetIP()->get_AutoClip(lpRet);
  21933.     CHECK_HRESULT(hr, CVisioAmbients, AutoClip);
  21934.     return hr;
  21935. }
  21936.  
  21937.  
  21938. VW_INLINE HRESULT CVisioAmbients::Appearance(long FAR *lpRet)
  21939. {
  21940.     HRESULT hr= VW_INTERFACE_NOT_SET;
  21941.     CHECK_IP(GetIP(), CVisioAmbients, Appearance);
  21942.     if (NULL!=GetIP())
  21943.         hr= GetIP()->get_Appearance(lpRet);
  21944.     CHECK_HRESULT(hr, CVisioAmbients, Appearance);
  21945.     return hr;
  21946. }
  21947.  
  21948.  
  21949.  
  21950. //  ***************************************************************************
  21951. //  'Trailer'
  21952.  
  21953. //  Start D:\ml\bat\trailer.vis
  21954. //
  21955. //    VAO_* return codes && vaoGetObject prototype
  21956. #include "ivisreg.h"
  21957.  
  21958. //
  21959. //    Easy way to start things up:
  21960. VW_INLINE short vaoGetObjectWrap(CVisioApplication FAR &cVisApp)
  21961. {
  21962.     //    Calling this function with a local CVisioApplication
  21963.     //    will get the active Visio or launch a new one...
  21964.  
  21965.     short s;
  21966.     LPVISIOAPPLICATION pApp= NULL;
  21967.  
  21968.     s= vaoGetObject(&pApp);
  21969.  
  21970.     cVisApp= pApp;
  21971.     if (pApp!=NULL)
  21972.         pApp->Release();
  21973.  
  21974.     return s;
  21975. }
  21976.  
  21977. //  End D:\ml\bat\trailer.vis
  21978.  
  21979.  
  21980. //  ***************************************************************************
  21981. //  #endif for 'Sentinel'
  21982.  
  21983. #endif //  _Visiwrap_H
  21984.